chainpeek: DEX trading volume by protocol and by chain over 24 hours, 7 days and 30 days (cached DefiLlama data)
get_dex_volumeFetch DEX trading volume by protocol, chain, or both, including 24h, 7d, and 30d totals, change rates, and rankings from cached DefiLlama data.
Instructions
chainpeek: Get DEX volume by protocol and chain. For TVL use get_protocol_tvl. Returns DEX volume over 24 hours, 7 days and 30 days with change: a DEX's chains, a chain's largest DEXs, a DEX on a chain, or the market total and the largest DEXs, from Tanod's cache of DefiLlama data. Input: optional protocol, optional chain and limit; give one, both or neither. Cached DefiLlama data (refreshed every few hours), never live; as_of shows its age; chain tables cover the 25 chains with the most volume; an unknown name is a 422 with suggestions and a missing or over-2-day-old cache a 503 (neither charged). Informational only. Typically under 1 s (a local cache read). Price: USD 0.004. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/defi-data-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain name among the 25 chains with the most DEX volume, e.g. Solana, Ethereum, Base, BSC. With protocol: that DEX's volume on the chain. Alone: the chain and its largest DEXs. | |
| limit | No | Rows in a ranking or a breakdown, 1-50 (default 10). | |
| protocol | No | DEX name or slug, e.g. uniswap, uniswap-v3, curve-dex, pancakeswap-amm (a parent such as uniswap sums its versions). Omit for a chain or the overview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| as_of | No | ||
| chain | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| scope | No | ||
| stale | No | ||
| market | No | ||
| reason | No | ||
| source | No | ||
| protocol | No | ||
| other_matches | No | ||
| top_protocols | No | ||
| cache_age_hours | No |