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>"
Parameters
ParameterDescription
from

query · integer · required

Window start, Unix SECONDS. Inclusive.
to

query · integer · required

Window end, Unix SECONDS. Inclusive.
limit

query · 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.
chain

path · string · required

The chain the token lives on. CELO, ARB, OP and SCROLL return 400 here.
mint

path · 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.

Response fields of The individual trades behind a token
FieldType
tradesobject[]
trades[].atnumber
trades[].sidestring
trades[].priceUsdnumber | null
trades[].amountTokennumber | null
trades[].volumeUsdnumber | null
trades[].walletstring | null
trades[].txHashstring | null
coveredFromnumber | null
truncatedboolean

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