DefiLlama DeFi Protocol Fees & Revenue
Retrieve ranked 24h, 7d, and 30d protocol fee revenue across DEXs, lending markets, L1/L2 chains, and DeFi applications.
curl -sG "https://api.agentapigate.ai/v1/crypto/defillama/fees" \ --data-urlencode "limit=20" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# DefiLlama DeFi Protocol Fees & Revenue (`crypto.defillama.fees`) **total_24h_usd**: 62708422 · **count**: 20 ## protocols - [1] name: Tether, category: Stablecoin Issuer, total_24h_usd: 16923488, total_7d_usd: 119068798, total_30d_usd: 507017424 - [2] name: Circle USDC, category: Stablecoin Issuer, total_24h_usd: 6781925, total_7d_usd: 47388694, total_30d_usd: 202333589 - [3] name: Polymarket US, category: Prediction Market, total_24h_usd: 3844051, total_7d_usd: 25777116, total_30d_usd: 100148545 - [4] name: Hyperliquid Perps, category: Derivatives, total_24h_usd: 3557692, total_7d_usd: 24728666, total_30d_usd: 102425955 - [5] name: Polymarket International, category: Prediction Market, total_24h_usd: 1435707, total_7d_usd: 7962093, total_30d_usd: 34952571 - [6] name: PumpSwap, category: Dexs, total_24h_usd: 1297350, total_7d_usd: 9695565, total_30d_usd: 58499357 - [7] name: Lido, category: Liquid Staking, total_24h_usd: 1201921, total_7d_usd: 8106267, total_30d_usd: 49866687 - [8] name: pump.fun, category: Launchpad, total_24h_usd: 1197355, total_7d_usd: 8319343, total_30d_usd: 39684532 - [9] name: Fragment, category: NFT Marketplace, total_24h_usd: 1146982, total_7d_usd: 8112006, total_30d_usd: 34091452 - [10] name: Maple, category: Lending, total_24h_usd: 1103768, total_7d_usd: 4101679, total_30d_usd: 12348894 - [11] name: Aave V3, category: Lending, total_24h_usd: 1028807, total_7d_usd: 9107060, total_30d_usd: 42589387 - [12] name: Sky Lending, category: CDP, total_24h_usd: 943942, total_7d_usd: 6458457, total_30d_usd: 26859243 - [13] name: Hyper Foundation HYPE Staking, category: Staking Pool, total_24h_usd: 820009, total_7d_usd: 5571302, total_30d_usd: 27780055 - [14] name: Spiko, category: RWA, total_24h_usd: 718653, total_7d_usd: 1863839, total_30d_usd: 8187333 - [15] name: Tron, category: Chain, total_24h_usd: 702733, total_7d_usd: 4724860, total_30d_usd: 23456010
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:crypto.defillama.fees · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| chain | string | optional | — | Optional chain filter (e.g. "Ethereum", "Solana", "Base") |
| query | string | optional | — | Optional protocol name filter (e.g. "uniswap", "aave", "raydium") |
| limit | number | optional | 20 | Max protocols returned (1-40) |
| 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_fees | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 135 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 2236t → 513t (-77%) | 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 decentralized exchange (DEX) 24h, 7d, and 30d trading volumes from DefiLlama with optional chain and protocol filtering.
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 DeFi Protocol Fees & Revenue (crypto.defillama.fees) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/crypto/defillama/fees with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool crypto_defillama_fees on https://mcp.agentapigate.ai/mcp.
What does crypto.defillama.fees 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.fees?
Passing ?format=md transforms the response into normalized Markdown (~513 tokens vs ~2236 raw tokens, saving 77% 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.fees"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.