Tokens API
Token liquidity depth over time
How a TOKEN's pooled liquidity moved over a window, in USD — is it growing or draining? The trend under the point-in-time liquidity figure. Solana only.
GET
/api/external/token-analysis/liquidity-history/{chain}/{mint}Chains
- Solana SOL
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/token-analysis/liquidity-history/SOL/<mint>?resolution=1m&from=<from>&to=<to>"
| Parameter | Description |
|---|---|
resolutionquery · string · required | Candle width: 1-minute, 4-hour or 1-day liquidity candles.1m4h1D |
fromquery · integer · required | Window start, Unix SECONDS. Inclusive. |
toquery · integer · required | Window end, Unix SECONDS. Inclusive. At most 100 candles fit in one request — a wider window returns 400 naming the real ceiling for the resolution asked for, rather than a truncated series. |
chainpath · string · required | Solana only; every other chain returns 400. No wired source keeps a token liquidity time series on any other chain. |
mintpath · string · required | The token mint address. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type |
|---|---|
resolution | string |
points | object[] |
points[].at | number |
points[].open | number | null |
points[].high | number | null |
points[].low | number | null |
points[].close | number | null |
points[].complete | boolean |
change | object |
change.fromAt | number | null |
change.fromLiquidityUsd | number | null |
change.toAt | number | null |
change.toLiquidityUsd | number | null |
change.changeUsd | number | null |
change.changePct | number | null |
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