Market Data

Get Contracts

Gets a list of perpetual futures contracts and their current market data. For the list of supported markets, see Markets.

get/v1/perps/contracts

Request

  • Base URL
    https://api.ondoperps.xyz
  • URL
    https://api.ondoperps.xyz/v1/perps/contracts
  • Auth
    • none
    • or HTTP bearer
    • or API key in header ONDO-KEY-ID

Query parameters

sparklineboolean

If true, include sparkline price data in the response

Response

List of perpetual futures contracts

successboolean required

Whether the request was successful

errorstring

Error message, present only on failure

error_codestring

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecatedstring

Deprecation notice, if applicable

Example response

{
  "success": true,
  "result": [
    {
      "market": "AAPL-USD.P",
      "displayName": "Apple Inc.",
      "productType": "perpetual",
      "contractType": "linear",
      "baseCurrency": "AAPL",
      "quoteCurrency": "USDC",
      "lastPrice": "20000.54",
      "baseVolume": "1089.12",
      "quoteVolume": "120400.65",
      "usdVolume": "120400.65",
      "bid": "1500.22",
      "ask": "1600.20",
      "high": "1600.20",
      "low": "1400.20",
      "openInterest": "2394.2301",
      "openInterestUsd": "24311.72",
      "indexPrice": "1600.20",
      "indexCurrency": "USD",
      "fundingRate": "0.00152",
      "nextFundingRate": "0.00152",
      "nextFundingRateTimestamp": "2022-06-16T12:35:10.123456Z",
      "makerFee": "0.0002",
      "takerFee": "0.0005",
      "priceChangePercent": "-5",
      "tags": [
        "equity",
        "tech"
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.