Chains API
Chain DEX volume and fee revenue
DEX trading volume and protocol fee revenue for a whole chain, over trailing 24h/7d/30d windows. Ethereum only today.
/api/external/chain-analysis/chain-economics/{chain}What it returns
Chain-level economic activity: rolling DEX trading volume and protocol fee revenue, over trailing 24-hour, 7-day and 30-day windows. Distinct from chain-stats (indexed trade activity): this endpoint answers from a different source and a different metric family — trading volume and fee revenue, not trade count. Every field is null when nothing could be established, never 0, which here would claim a chain saw no volume or fee revenue at all. dexVolumeUsd and feesUsd degrade INDEPENDENTLY of each other: a failure fetching one never nulls the other. Chain coverage today is Ethereum only — every other catalogue chain refuses with a 400 naming the reason, not a guessed or partial answer.
Chains
- Ethereum ETH
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/ETH"
| Parameter | Description |
|---|---|
chainpath · string · required | The chain to query. Ethereum only; every other chain returns 400 — this resource is not offered there. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type |
|---|---|
dexVolumeUsd | object |
dexVolumeUsd.h24 | number | null |
dexVolumeUsd.d7 | number | null |
dexVolumeUsd.d30 | number | null |
feesUsd | object |
feesUsd.h24 | number | null |
feesUsd.d7 | number | null |
feesUsd.d30 | number | null |
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