Market Data

public/get_currency

Changed on

Returns the full detail record for one currency named by the required currency parameter: supported instrument types, risk managers, current and 24h spot price, margin collateral discounts, lending APYs and totals, per-manager open-interest caps and current OI, and protocol asset addresses. Returns a not-found error for unknown currencies. Public endpoint.

post/public/get_currency

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    none declared

Request body

GetCurrencyRequest required
currency, string required

Response

Success

Currency required

A currency's spot price and its assets grouped by type. Managers risking the currency are listed per universe under managers; asset-level risk — OI, lending, and discounts — lives under each asset's universes.

currency, string required
managers, UniverseManagers[] required

Managers risk-pricing this currency, one entry per universe where at least one manager covers it.

market_type, 'ALL' | 'SRM_BASE_ONLY' | 'SRM_OPTION_ONLY' | 'SRM_PERP_ONLY' | 'CASH' required

Which instrument/collateral classes the currency is enabled for.

option, AssetEntry nullable

A non-spot asset (option or perp) and its per-universe risk.

perp, AssetEntry nullable

A non-spot asset (option or perp) and its per-universe risk.

spot, SpotAssetEntry[] required

Every spot asset registered to this currency (e.g. lending "USDC" and non-lending "USDC-NL").

spot_price, string required
spot_price_24h, string nullable

Changes