API Reference

Get Currency

Method Name

public/get_currency

Get currency related risk params, spot price 24hrs ago and lending details for a specific currency.

Parameters

currency string required
Underlying currency of asset (ETH, BTC, etc)

Response

id string or integer required
result object required
result.borrow_apy string required
Borrow APY (only for USDC)
result.currency string required
Underlying currency of asset (ETH, BTC, etc)
result.spot_price string required
Spot price of the currency
result.srm_im_discount string required
Initial Margin discount for given collateral in Standard Manager (e.g. LTV). Only the Standard Manager supports non-USDC collateral
result.srm_mm_discount string required
Maintenance Margin discount for given collateral in Standard Manager (e.g. liquidation threshold). Only the Standard Manager supports non-USDC collateral
result.supply_apy string required
Supply APY (only for USDC)
result.total_borrow string required
Total collateral borrowed in the protocol (only USDC is borrowable)
result.total_supply string required
Total collateral supplied in the protocol
result.asset_cap_and_supply_per_manager object required
Asset caps and total supply by manager (USDC not split by manager)
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}