AgentAPIGate
Back to Catalog
GET /v1/crypto/defillama/feesPack: finance·MCP Tool: crypto_defillama_fees

DefiLlama DeFi Protocol Fees & Revenue

Retrieve ranked 24h, 7d, and 30d protocol fee revenue across DEXs, lending markets, L1/L2 chains, and DeFi applications.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Optional chain filter (e.g. "Ethereum", "Solana", "Base")
Optional protocol name filter (e.g. "uniswap", "aave", "raydium")
Max protocols returned (1-40)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-77% tokens
# 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
ParameterTypeReqSample / DefaultDescription
chainstringoptional—Optional chain filter (e.g. "Ethereum", "Solana", "Base")
querystringoptional—Optional protocol name filter (e.g. "uniswap", "aave", "raydium")
limitnumberoptional20Max protocols returned (1-40)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolcrypto_defillama_feesOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency135 ms$0 billed on empty or 4xx/5xx
Token Economy2236t → 513t (-77%)Partner credit: eligible

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.