Get Dex Volume
get_dex_volumeCompare decentralized exchange activity via DeFiLlama: 24h/7d/30-day volume, period-over-period changes, and each protocol's share of reported global 24-hour DEX volume. Filter by protocol and rank by a 1-, 7-, or 30-day lookback window.
Use when: Use for landscape questions — which DEXs dominate volume, how activity shifted week-over-week, or a specific protocol's relative share. For executable swap pricing use get_dex_quote instead.
Limitations: Third-party DeFiLlama reporting, not on-chain truth; coverage gaps understate smaller protocols. 24-hour share is computed against the unfiltered global total, so filtered results retain landscape context.
Alternatives: get_dex_quote, get_chain_metrics
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of DEX protocols to return. | |
| protocols | No | Optional protocol names or DeFiLlama slugs, such as ['uniswap-v3', 'curve-dex']. When omitted, return the largest DEX protocols. | |
| lookback_days | No | Window used to rank the returned protocols: 1, 7, or 30 days (nearest supported window is used). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| dexes | Yes | ||
| error | No | ||
| error_type | No | ||
| total_matching | Yes | ||
| total_available | Yes | ||
| volume_share_basis | Yes |