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. When more than limit trades share one second, that whole second is returned. |
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 | Description |
|---|---|---|
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 | The earliest instant trades covers completely, Unix seconds: every trade of this token between coveredFrom and to is in trades. Equal to the requested from when the whole window fit in one answer. LATER than from when the window held more trades than one answer holds or than limit allowed. null whenever trades is empty — a window with no trade found is never reported as confirmed-quiet — and never paired with a populated trades. |
truncated | boolean | true when coveredFrom is later than the requested from — there may be trades between the requested from and coveredFrom that are NOT in this response. To page back, ask again with the same from and to = coveredFrom - 1; stop when truncated is false. |
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