Files
ritmex-bot/docs/nado/developer-resources/api/v2/contracts.md
T

3.4 KiB

Contracts

Request

{% tabs %} {% tab title="Get pairs" %} GET [ARCHIVE_V2_ENDPOINT]/contracts?edge={true|false} {% endtab %} {% endtabs %}

Request Parameters

ParameterTypeRequiredDescription
edgeboolNoWether to retrieve volume and OI metrics for all chains. When turned off, it only returns metrics for the current chain. Defaults to true.

Response

{% hint style="info" %} Note: the response is a map of ticker_id -> contract info object. {% endhint %}

{
    "BTC-PERP_USDT0": {
        "product_id": 1,
        "ticker_id": "BTC-PERP_USDT0",
        "base_currency": "BTC-PERP",
        "quote_currency": "USDT0",
        "last_price": 25744.0,
        "base_volume": 794.154,
        "quote_volume": 20475749.367766097,
        "product_type": "perpetual",
        "contract_price": 25830.738843799172,
        "contract_price_currency": "USD",
        "open_interest": 3059.325,
        "open_interest_usd": 79024625.11330591,
        "index_price": 25878.913320746455,
        "mark_price": 25783.996946729356,
        "funding_rate": -0.003664562348812546,
        "next_funding_rate_timestamp": 1694379600,
        "price_change_percent_24h": -0.6348599635253989
    }
}

Response Fields

Field NameTypeNullableDescription
product_idu32NoUnique identifier for the product.
ticker_idstringNoIdentifier of a ticker with delimiter to separate base/target.
base_currencystringNoSymbol of the base asset.
quote_currencystringNoSymbol of the target asset.
last_pricedecimalNoLast transacted price of base currency based on given quote currency.
base_volumedecimalNo24-hours trading volume for the pair (unit in base)
quote_volumedecimalNo24-hours trading volume for the pair (unit in quote/target)
product_typestringNoName of product type.
contract_pricestringNoDescribes the price per contract.
contract_price_currencystringNoDescribes the currency which the contract is priced in.
open_interestdecimalNoThe current open interest for the perp contract.
open_interest_usddecimalNoThe value in USD of the current open interest.
index_pricedecimalNoLast calculated index price for underlying of contract
funding_ratedecimalNoCurrent 24hr funding rate. Can compute hourly funding rate dividing by 24.
next_funding_rate_timestampintegerNoTimestamp of the next funding rate change
price_change_percent_24hdecimalNo24-hours % price change of market pair