Perpetuals API
The market-wide derivatives indices by day, with one coin's whale index
The derivatives risk index and derivatives market index as one daily series, oldest first, plus one coin's signed whale index on the same days when a ticker is given.
/api/external/perps/derivatives-indicesWhat it returns
Two market-wide leveraged-derivatives indices as one daily series, one point per UTC day, oldest first: riskIndex, how stretched the derivatives market is (higher means more risk; whole numbers, from March 2022), and marketIndex, the derivatives market level, based at 1000 on 1 January 2024. Naming a coin in symbol adds whaleIndex, that coin's own daily whale index on the same days: a SIGNED reading of how the largest accounts are positioned, negative as often as positive. A day a series does not reach is null in that column, never 0 — the three series start on different dates, and the market index is missing 1 March 2026. The newest day is normally still running (complete: false) and its values still move. symbol is a coin ticker (e.g. "BTC", "ETH", "SOL"), matched case-insensitively; a coin with no whale index answers 404, so leave symbol off to get the market-wide indices alone.
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-indices"
| Parameter | Description |
|---|---|
symbolquery · string · optional | Optional coin ticker to add the whale-index column, e.g. "BTC" — not a trading pair such as "BTCUSDT", and not a token mint or contract address. Case-insensitive. Left off, the answer carries the two market-wide indices and whaleIndex: null. |
limitquery · integer · optional | How many of the most recent days to return, 1 to 1000. Defaults to 100. limit ≤ 300 keeps the answer under 32 KB. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
symbol | string | null | The coin the whale column was read for, upper-cased, or null when none was asked. |
points | object[] | Oldest first. |
points[].at | number | The day's 00:00 UTC, unix seconds. |
points[].riskIndex | number | null | The market-wide derivatives risk index that day — higher means more risk. Whole numbers; the series starts in March 2022. null on a day it does not cover. |
points[].marketIndex | number | null | The market-wide derivatives market index that day, based at 1000 on 1 January 2024. null on a day it does not cover, 1 March 2026 included. |
points[].whaleIndex | number | null | The asked coin's whale index that day, signed: positive and negative readings are both normal. null on every day when no coin was asked, and on a day before the coin's series starts. |
points[].complete | boolean | Whether the day has ended. false only on the newest day, still running when 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