Tokens API
The individual trades behind a token
Raw trade events in a window — who traded, when, which side, how much. A price that could not be trusted is null, never a number.
GET
/api/external/token-analysis/trades/{chain}/{mint}Chains
- Solana SOL
- BNB Chain BNB
- Ethereum ETH
- Stable STABLE
- Base BASE
- Robinhood Chain RHC
- Arc ARC
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/trades/SOL/<mint>?from=<from>&to=<to>&limit=<limit>"
| Parameter | Description |
|---|---|
fromquery · integer · required | Window start, Unix SECONDS. Inclusive. |
toquery · integer · required | Window end, Unix SECONDS. Inclusive. |
limitquery · integer · required | Most trades to return, newest-first within the window. Capped at 100 — the lowest per-call ceiling among the wired sources, so the cap is ours and deterministic rather than whichever source answered deciding how many you got (enforced after the API-key gate; see above). A wide window costs no more than a narrow one: every source is asked for at most limit rows in one call regardless of how wide [from, to] is. |
chainpath · string · required | The chain the token lives on. CELO, ARB, OP and SCROLL return 400 here. |
mintpath · string · required | The token mint address (Solana) or contract address (EVM). |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type |
|---|---|
trades | object[] |
trades[].at | number |
trades[].side | string |
trades[].priceUsd | number | null |
trades[].amountToken | number | null |
trades[].volumeUsd | number | null |
trades[].wallet | string | null |
trades[].txHash | string | null |
coveredFrom | number | null |
truncated | boolean |
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