DefiLlama On-Chain Token Prices Batch Lookup
Fetch current USD prices, decimals, symbols, and confidence scores for up to 25 native chain:address tokens via DefiLlama Coins API.
curl -sG "https://api.agentapigate.ai/v1/crypto/defillama/coins_price" \ --data-urlencode "coins=ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,ethereum:0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599,solana:So11111111111111111111111111111111111111112" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# DefiLlama On-Chain Token Prices Batch Lookup (`crypto.defillama.coins_price`) **count**: 3 ## prices - [1] id: ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, symbol: WETH, price_usd: 1644.7664788019106, decimals: 18, timestamp: 1795894021 - [2] id: ethereum:0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599, symbol: WBTC, price_usd: 59381.129441875004, decimals: 8, timestamp: 1795894025 - [3] id: solana:So11111111111111111111111111111111111111112, symbol: SOL, price_usd: 70.39563315699073, decimals: 9, timestamp: 1795894021
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:crypto.defillama.coins_price · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| coins | string | required | ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,ethereum:0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599,solana:So11111111111111111111111111111111111111112 | Comma-separated native chain:address token IDs (max 25, e.g. ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,solana:So11111111111111111111111111111111111111112) |
| 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_coins_price | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 147 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 306t → 141t (-54%) | 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.
Retrieve decentralized exchange (DEX) 24h, 7d, and 30d trading volumes from DefiLlama with optional chain and protocol filtering.
Frequently Asked Questions
How do I call DefiLlama On-Chain Token Prices Batch Lookup (crypto.defillama.coins_price) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/crypto/defillama/coins_price with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool crypto_defillama_coins_price on https://mcp.agentapigate.ai/mcp.
What does crypto.defillama.coins_price 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.coins_price?
Passing ?format=md transforms the response into normalized Markdown (~141 tokens vs ~306 raw tokens, saving 54% 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.coins_price"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.