Tokens API
Price at a past moment
What one token was worth in USD at a given Unix-seconds instant, with the instant the price actually belongs to — the nearest one a source holds, which can be an hour off.
GET
/api/external/token-analysis/price-history/{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/price-history/SOL/<mint>?at=<at>"
| Parameter | Description |
|---|---|
atquery · integer · required | The instant to price, in Unix SECONDS. A value in the future returns 400 — and so does a millisecond timestamp, which is a date in the year 58,000. |
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 |
|---|---|
usd | number | null |
at | number | null |
corroborated | 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