Chains API
How have DEX volume, fees and revenue on this chain moved?
One chain's daily DEX trading volume, fees paid or protocol revenue in USD, over 7 to 365 days or its whole history.
/api/external/chain-analysis/chain-economics-history/{chain}What it returns
One chain's daily total for the metric chosen with metric, over the trailing window in days, oldest first, one point per UTC day dated 00:00 UTC. volume is what was traded on the chain's exchanges, fees what users paid its protocols, revenue the part of those fees the protocols kept. The window counts back from the newest point's own day, not from today, so read the newest timestamp to see how current the series is. A chain whose activity began recently answers fewer points than days, and a day missing from the record is left out rather than filled in. Small chains can carry very small figures, a few dollars a day.
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/chain-analysis/chain-economics-history/SOL"
| Parameter | Description |
|---|---|
metricquery · string · optional | Which series. volume: DEX trading volume on the chain. fees: what users paid the chain's protocols. revenue: the part of the fees the protocols kept. Defaults to volume.volumefeesrevenue |
daysquery · string · optional | How many trailing days to return, or all for the whole series. Defaults to 90. days ≤ 365 keeps the answer under 32 KB.73090180365all |
chainpath · string · required | The chain to query. CELO, ARB, OP and SCROLL return 400 here. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
chain | string | The chain asked about. |
metric | string | The series returned. |
days | string | The window returned. |
points | object[] | Oldest first, one per day. |
points[].timestamp | integer | Unix seconds, 00:00 UTC of the day. |
points[].usd | number | The day's total in USD. |
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