Perpetuals API
One perpetual-futures market, by symbol
The current state of ONE perpetual-futures market, keyed by trading SYMBOL. No chain, no mint — an unrecognised symbol is refused rather than guessed at.
/api/external/perps/perps-market/{symbol}What it returns
A market SUMMARY: current price, how many positions are open, combined open interest, and estimated long/short liquidation value over four trailing windows (1h, 4h, 1d, 7d). Chainless — symbol is a leveraged derivatives market ticker (e.g. "BTC"), never a token mint or contract address, and this endpoint has no relationship to any of this API's six chains. An unrecognised symbol returns 400 naming exactly that, rather than a blank 404 or a silent all-null 200 — use GET /perps/perps-markets to discover a real one.
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/perps-market/<symbol>"
| Parameter | Description |
|---|---|
symbolpath · string · required | A coin ticker, e.g. "BTC" — the asset the market is on, not a token mint or contract address, and not scoped to any chain this API otherwise supports. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
price | number | null | Current mark/market price for this market. |
positionCount | number | null | Number of currently open positions. |
openInterestUsd | number | null | Combined open interest across all positions, USD. |
longLiquidationUsd | object | Estimated LONG-side liquidation value, USD, over four trailing windows. |
longLiquidationUsd.h1 | number | null | Estimated value over the trailing 1 hour. |
longLiquidationUsd.h4 | number | null | Estimated value over the trailing 4 hours. |
longLiquidationUsd.h1d | number | null | Estimated value over the trailing 1 day. |
longLiquidationUsd.h7d | number | null | Estimated value over the trailing 7 days. |
shortLiquidationUsd | object | Estimated SHORT-side liquidation value, USD, over four trailing windows. |
shortLiquidationUsd.h1 | number | null | Estimated value over the trailing 1 hour. |
shortLiquidationUsd.h4 | number | null | Estimated value over the trailing 4 hours. |
shortLiquidationUsd.h1d | number | null | Estimated value over the trailing 1 day. |
shortLiquidationUsd.h7d | number | null | Estimated value over the trailing 7 days. |
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