GET
/api/v1/dex/drift/marketsStandard tier+ · 300 req/minEvery Drift (Solana) perpetual market.
OI, funding (cadence varies by market), 24h volume / trades. Drift runs an orderbook-style DLOB on Solana.
Query parameters
All query parameters are optional unless marked required.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| limit | number | optional | 200 | Max markets. Max 1000. |
Response shape
Always wrapped in the standard envelope. Nullable fields are explicitly marked — treat missing numeric data as a real data-source gap, not as an error.
data payloadtypescript
// Wrapped in the standard envelope:
// {
// data: /* shape below */,
// meta?: { total?: number; limit?: number; offset?: number; ... }
// }
{ source; displayName; chain; totalOiUsd; totalVolume24hUsd; lastTs; markets: DexMarketRow[] }Example
Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.
Requestbash
curl -sS "http://localhost:3000/api/v1/dex/drift/markets?limit=10"Responsejson
{ "data": { "source": "drift", "markets": [] }, "meta": { "total": 0, "limit": 10 } }Next
Check the error code reference, or get an API key to try the request against your own account.