DefiLlama DEX Spot Trading Volumes Overview
Retrieve decentralized exchange (DEX) 24h, 7d, and 30d trading volumes from DefiLlama with optional chain and protocol filtering.
curl -sG "https://api.agentapigate.ai/v1/crypto/defillama/dex_volumes" \ --data-urlencode "limit=15" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# DefiLlama DEX Spot Trading Volumes Overview (`crypto.defillama.dex_volumes`) **total_24h**: 6463099501.63 · **total_7d**: 53216686407.59996 · **change_1d**: 8.75 · **count**: 15 ## protocols - [1] name: Kalshi, display_name: Kalshi, total_24h: 757682059, total_7d: 4817998921, total_30d: 19679044407 - [2] name: Uniswap V4, display_name: Uniswap V4, total_24h: 664920674, total_7d: 4864993353, total_30d: 27712808366 - [3] name: Aero Slipstream, display_name: Aero Slipstream, total_24h: 655022645, total_7d: 5851742231, total_30d: 22677259498 - [4] name: PancakeSwap AMM V3, display_name: PancakeSwap AMM V3, total_24h: 431811087, total_7d: 3977802983, total_30d: 20313651564 - [5] name: Uniswap V3, display_name: Uniswap V3, total_24h: 422550324, total_7d: 6124962552, total_30d: 34694610051 - [6] name: Metric V1, display_name: Metric V1, total_24h: 326530303, total_7d: 2375229899, total_30d: 9988971409 - [7] name: THORChain DEX, display_name: THORChain DEX, total_24h: 223849649, total_7d: 1628465178, total_30d: 5117611057 - [8] name: Hyperliquid Spot Orderbook, display_name: Hyperliquid Spot Orderbook, total_24h: 147688424, total_7d: 1191445579, total_30d: 5600036282 - [9] name: PumpSwap, display_name: PumpSwap, total_24h: 139668933, total_7d: 776422633, total_30d: 5460746379 - [10] name: NEAR Intents, display_name: NEAR Intents, total_24h: 129319258, total_7d: 1061222821, total_30d: 4305032844 - [11] name: Polymarket US, display_name: Polymarket US, total_24h: 126153903, total_7d: 852732742, total_30d: 3384023957 - [12] name: BisonFi, display_name: BisonFi, total_24h: 111447631, total_7d: 1046493927, total_30d: 5032687099 - [13] name: Orca DEX, display_name: Orca DEX, total_24h: 108628612, total_7d: 1280507083, total_30d: 6516638676 - [14] name: Raydium AMM, display_name: Raydium AMM, total_24h: 99883815, total_7d: 996675662, total_30d: 4496105022 - [15] name: Flashnet, display_name: Flashnet, total_24h: 95061917, total_7d: 1077876702, total_30d: 3205562637
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:crypto.defillama.dex_volumes · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| chain | string | optional | — | Optional blockchain filter (e.g. Solana, Ethereum, Base) |
| query | string | optional | — | Optional protocol name filter (e.g. uniswap, raydium) |
| limit | number | optional | 15 | Max protocols (1-50) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | crypto_defillama_dex_volumes | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 114 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1904t → 533t (-72%) | Partner credit: eligible |
More DefiLlama (api.llama.fi) Data APIs
Query Total Value Locked (TVL), 1d/7d TVL change, chains, and categories across 4,000+ DeFi protocols.
Retrieve Total Value Locked (TVL) ranked across Layer-1 and Layer-2 blockchains from DefiLlama with token symbols and chain IDs.
Filter ranked DeFi yield pools across chains and protocols by APY, TVL, asset symbol, and stablecoin status using a compact server-side index.
Retrieve stablecoin circulating supply, peg price, mechanism (fiat-backed, crypto-backed, algorithmic), and 24h supply changes across top stablecoins.
Retrieve ranked 24h, 7d, and 30d protocol fee revenue across DEXs, lending markets, L1/L2 chains, and DeFi applications.
Fetch current USD prices, decimals, symbols, and confidence scores for up to 25 native chain:address tokens via DefiLlama Coins API.
Frequently Asked Questions
How do I call DefiLlama DEX Spot Trading Volumes Overview (crypto.defillama.dex_volumes) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/crypto/defillama/dex_volumes with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool crypto_defillama_dex_volumes on https://mcp.agentapigate.ai/mcp.
What does crypto.defillama.dex_volumes cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on crypto.defillama.dex_volumes?
Passing ?format=md transforms the response into normalized Markdown (~533 tokens vs ~1904 raw tokens, saving 72% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only finance endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["crypto.defillama.dex_volumes"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.