HomeDocumentationAPI Reference
Log In
API Reference

Get All Currencies

Method Name

public/get_all_currencies

Get all active currencies with their spot price, spot price 24hrs ago.

For real-time updates, recommend using channels -> ticker or orderbook.

Parameters

Response

id string or integer required
result array of objects required
result[].currency string required
Underlying currency of asset (ETH, BTC, etc)
result[].spot_price string required
Spot price of the currency
result[].instrument_types array of strings required
Instrument types supported for the currency
result[].managers array of objects required
Managers supported for the currency
result[].managers[].address string required
Address of the manager
result[].managers[].margin_type string required
Margin type of the manager
enum PM SM
result[].protocol_asset_addresses object required
Asset addressses of the derive protocol for given currency
result[].protocol_asset_addresses.option string or null
Address of the Derive protocol option contract (none if not supported)
result[].protocol_asset_addresses.perp string or null
Address of the Derive protocol perp contract (none if not supported)
result[].protocol_asset_addresses.spot string or null
Address of the Derive protocol spot contract (none if not supported)
result[].protocol_asset_addresses.underlying_erc20 string or null
Address of the erc20 asset on Derive chain. This is the asset that is deposited into the spot asset
result[].spot_price_24h string or null
Spot price of the currency 24 hours ago

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}