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.

GET/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>"
Parameters
ParameterDescription
symbol

path · 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.

Response fields of One perpetual-futures market, by symbol
FieldTypeDescription
pricenumber | nullCurrent mark/market price for this market.
positionCountnumber | nullNumber of currently open positions.
openInterestUsdnumber | nullCombined open interest across all positions, USD.
longLiquidationUsdobjectEstimated LONG-side liquidation value, USD, over four trailing windows.
longLiquidationUsd.h1number | nullEstimated value over the trailing 1 hour.
longLiquidationUsd.h4number | nullEstimated value over the trailing 4 hours.
longLiquidationUsd.h1dnumber | nullEstimated value over the trailing 1 day.
longLiquidationUsd.h7dnumber | nullEstimated value over the trailing 7 days.
shortLiquidationUsdobjectEstimated SHORT-side liquidation value, USD, over four trailing windows.
shortLiquidationUsd.h1number | nullEstimated value over the trailing 1 hour.
shortLiquidationUsd.h4number | nullEstimated value over the trailing 4 hours.
shortLiquidationUsd.h1dnumber | nullEstimated value over the trailing 1 day.
shortLiquidationUsd.h7dnumber | nullEstimated 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