Method Name
public/get_assets
public/get_assetsGet all assets for a given currency and type
Parameters
asset_type
string required |
currency
string required |
expired
boolean required |
Response
id string or integer required |
result array of objects required |
result[].
address
string required |
result[].
asset_id
string required |
result[].
asset_name
string required |
result[].
asset_type
string required |
result[].
currency
string required |
result[].
erc20_details
object or null required |
result[].erc20_details.
decimals
integer required |
result[].erc20_details.
borrow_index
string |
result[].erc20_details.
supply_index
string |
result[].erc20_details.
underlying_erc20_address
string |
result[].
is_collateral
boolean required |
result[].
is_position
boolean required |
result[].
option_details
object or null required |
result[].option_details.
expiry
integer required |
result[].option_details.
index
string required |
result[].option_details.
option_type
string required |
result[].option_details. strike string required |
result[].option_details.
settlement_price
string or null |
result[].
perp_details
object or null required |
result[].perp_details.
aggregate_funding
string required |
result[].perp_details.
funding_rate
string required |
result[].perp_details.
index
string required |
result[].perp_details.
max_rate_per_hour
string required |
result[].perp_details.
min_rate_per_hour
string required |
result[].perp_details.
static_interest_rate
string required |
result[].
sub_id
string required |
Example
{request_example_shell}{request_example_javascript}{request_example_python}The above command returns JSON structured like this:
{response_example_json}