Perpetuals API
One venue derivatives instrument's price candles with traded volume
OHLC price candles with USD volume for one perpetual or dated future on one venue, 1m to 1w per candle, oldest first.
/api/external/perps/derivatives-ohlcv/{symbol}What it returns
One venue's price candles for one derivatives instrument — open, high, low and close, with the USD volume traded in each candle — oldest first. Prices are in the instrument's quote currency: US dollars or a dollar stablecoin on most, but BTC on a coin-quoted one such as ETHBTC. The newest candle is normally the one still in progress when the figures were read (complete: false). symbol is the venue's instrument id, spelled exactly as listed (case-sensitive) — take venue and instrument from a derivatives-coin-venues row. Dated futures answer too, by the venue's own id (e.g. "BTC-25SEP26" on Deribit), though derivatives-coin-venues lists perpetuals only. An instrument the venue does not list, in that spelling, answers 404.
Chains
This endpoint is not tied to a chain: it takes no chain in its request.
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/perps/derivatives-ohlcv/<symbol>?venue=Binance"
| Parameter | Description |
|---|---|
venuequery · string · required | The trading venue, spelled exactly as listed (case-sensitive), as derivatives-coin-venues names it.BinanceOKXBybitGateMEXCCoinbaseHyperliquidBitgetBitunixWhiteBITDeribitBingXAsterLighterLBankKrakenApeX OmniHTXCrypto.comKuCoinExtendedBitfinexdYdXParadex |
intervalquery · string · optional | Candle width. Defaults to one day.1m3m5m15m30m1h4h6h8h12h1d1w |
limitquery · integer · optional | How many of the most recent candles to return, 1 to 1000. Defaults to 100. Fewer come back when the instrument's history is shorter or a candle carries no figures. limit ≤ 250 keeps the answer under 32 KB. |
symbolpath · string · required | The venue's own instrument id, exactly as instrument in derivatives-coin-venues rows, case included: e.g. "BTCUSDT" (Binance, Bybit), "BTC-USDT-SWAP" (OKX), "BTC_USDT" (Gate), "tBTCF0:USTF0" (Bitfinex) — not a bare coin ticker such as "BTC", and not a token mint or contract address. Case-sensitive. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
venue | string | The trading venue. |
instrument | string | The instrument id, exactly as asked. |
interval | string | The candle width. |
candles | object[] | Oldest first. |
candles[].at | number | The candle's open, unix seconds. |
candles[].open | number | null | Price at the open, in the instrument's quote currency. null when not stated. |
candles[].high | number | null | Highest price in the candle, in the quote currency. null when not stated. |
candles[].low | number | null | Lowest price in the candle, in the quote currency. null when not stated. |
candles[].close | number | null | Price at the close — for the candle in progress, the latest price — in the quote currency. null when not stated. |
candles[].volumeUsd | number | null | USD volume traded on the instrument in the candle. null when not stated. |
candles[].complete | boolean | Whether the figures are final. false only on the newest candle, which was still in progress when its figures were read. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key