Tokens API
Exit liquidity of many tokens
How much of each of up to 50 tokens' pooled liquidity could actually be sold before the price collapses, in one request. Base and Solana only.
/api/external/token-analysis/exit-liquidity-batch/{chain}What it returns
The exit-liquidity answer — pooled liquidity, how much of it could actually be extracted by selling, and the share — for many tokens on one chain in one request. Base and Solana only. Each result is exactly what exit-liquidity answers for that token, with the same caveats on every field. POST, because the list is the subject: it can run past what a URL comfortably holds, and a body keeps a watch list out of every proxy log between the caller and this service.
Chains
- Solana SOL
- Base BASE
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -X POST -H "x-dex-data-key: $DEXDATA_API_KEY" \
-H "content-type: application/json" \
-d '{"subjects":["<subjects>"]}' \
"https://api.dexdata.io/api/external/token-analysis/exit-liquidity-batch/SOL"| Parameter | Description |
|---|---|
chainpath · string · required | The chain every token in the batch lives on. Base and Solana only; every other chain returns 400, because no wired source measures exit liquidity there. |
subjectsbody · string[] · optional | Token mint addresses (Solana) or 0x contract addresses (Base). Between 1 and 50, each sent once. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
results | object[] | One entry per requested subject, in the order they were sent. |
results[].subject | string | The subject exactly as it was sent. |
results[].result | object | null | What the single-subject endpoint answers for this subject. null only when error is set. |
results[].result.liquidityUsd | number | null | Nominal liquidity pooled behind the token right now, in USD. |
results[].result.exitLiquidityUsd | number | null | How much of that pooled liquidity could actually be extracted by selling, in USD. |
results[].result.exitLiquidityPct | number | null | exitLiquidityUsd as a share of liquidityUsd. null when either figure is missing. This is a raw, source-derived ratio and is NOT clamped to 0-100 — a value below 0 or above 100 is possible and reflects the source answer as given. |
results[].error | string | null | null, or unavailable when no source could be reached for this subject — retry it. A subject nobody has data for is NOT an error: its result says so. |
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