---
title: "public/get_currency"
method: POST
path: "/public/get_currency"
tags: ["Market Data"]
---

# public/get_currency

`POST /public/get_currency`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/get_currency`
- Auth: none declared

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.

## Request body

- GetCurrencyRequest
  - `currency` string, required

## Response `200`

Success

- Currency: 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.
    - `pm` integer, nullable: PMRM2 manager id risking this currency in the universe.
    - `risk_universe_id` integer, required
    - `risk_universe_name` string, nullable: Display name of the universe (uppercase, e.g. "PRIME"); absent until set by the exchange.
    - `sm` integer, nullable: SRM manager id risking this currency in the universe.
  - `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.
    - `address` string, required: EIP-55 checksummed protocol asset address.
    - `name` string, required: Registered asset name (e.g. "ETH-OPTION", "ETH-PERP").
    - `universes` AssetUniverse[], required
      - `oi` OpenInterestStats, required
        - `current_open_interest` string, required
        - `interest_cap` string, required
      - `risk_universe_id` integer, required
      - `risk_universe_name` string, nullable: Display name of the universe (uppercase, e.g. "PRIME"); absent until set by the exchange.
      - `srm_perp_margin_requirements` SrmPerpMarginRequirements, nullable: The SRM's perp margin rates for one `(currency, risk universe)`, and the leverage they imply. PMRM purposefully does not have a mirror struct as the leverage depends heavily on the composition of the portfolio.
        - `im_perp_req` string, required: Initial margin rate, as a fraction of perp notional.
        - `max_leverage` string, required: `1 / im_perp_req`, rounded to 2 decimals. A zero `im_perp_req` scales the perp market out. It reports `"0"` here, not unbounded leverage.
        - `mm_perp_req` string, required: Maintenance margin rate, as a fraction of perp notional.
  - `perp` AssetEntry, nullable: A non-spot asset (option or perp) and its per-universe risk.
    - `address` string, required: EIP-55 checksummed protocol asset address.
    - `name` string, required: Registered asset name (e.g. "ETH-OPTION", "ETH-PERP").
    - `universes` AssetUniverse[], required
      - `oi` OpenInterestStats, required
        - `current_open_interest` string, required
        - `interest_cap` string, required
      - `risk_universe_id` integer, required
      - `risk_universe_name` string, nullable: Display name of the universe (uppercase, e.g. "PRIME"); absent until set by the exchange.
      - `srm_perp_margin_requirements` SrmPerpMarginRequirements, nullable: The SRM's perp margin rates for one `(currency, risk universe)`, and the leverage they imply. PMRM purposefully does not have a mirror struct as the leverage depends heavily on the composition of the portfolio.
        - `im_perp_req` string, required: Initial margin rate, as a fraction of perp notional.
        - `max_leverage` string, required: `1 / im_perp_req`, rounded to 2 decimals. A zero `im_perp_req` scales the perp market out. It reports `"0"` here, not unbounded leverage.
        - `mm_perp_req` string, required: Maintenance margin rate, as a fraction of perp notional.
  - `spot` SpotAssetEntry[], required: Every spot asset registered to this currency (e.g. lending "USDC" and non-lending "USDC-NL").
    - `address` string, required: EIP-55 checksummed protocol asset address.
    - `erc20` Erc20Details, required
      - `decimals` integer, required
      - `underlying_erc20` string, nullable: On-chain ERC20 token deposited into the spot asset (informational).
    - `min_deposit_usd` string, required
    - `name` string, required: Registered asset name (e.g. "USDC", "USDC-NL").
    - `universes` SpotUniverse[], required
      - `lending` LendingDetails, nullable: Lending pool stats for a `(spot_asset, universe)` pair. The pool's total supply is reported in the `current_open_interest` field.
        - `borrow_apy` string, required
        - `supply_apy` string, required
        - `total_borrow` string, required
        - `total_borrow_cap` string, required: Borrow ceiling for this lending asset in this universe.
      - `oi` OpenInterestStats, required: Spot supply OI cap + current supply (for a lending asset, the current supply is the pool's total supplied collateral).
        - `current_open_interest` string, required
        - `interest_cap` string, required
      - `pm2_im_discount` string, required: PMRM2 collateral haircut ("0" if not collateralized).
      - `pm2_mm_discount` string, required
      - `risk_universe_id` integer, required
      - `srm_im_discount` string, required: SRM collateral discount (cash asset "1"; non-collateral "0").
      - `srm_mm_discount` string, required
  - `spot_price` string, required
  - `spot_price_24h` string, nullable

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_currency/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
