AgentAPIGate
Back to Catalog
GET /v1/crypto/defillama/coins_pricePack: finance·MCP Tool: crypto_defillama_coins_price

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.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Comma-separated native chain:address token IDs (max 25, e.g. ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,solana:So11111111111111111111111111111111111111112)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-54% tokens
# 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
ParameterTypeReqSample / DefaultDescription
coinsstringrequiredethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,ethereum:0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599,solana:So11111111111111111111111111111111111111112Comma-separated native chain:address token IDs (max 25, e.g. ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,solana:So11111111111111111111111111111111111111112)
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_coins_priceOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency147 ms$0 billed on empty or 4xx/5xx
Token Economy306t → 141t (-54%)Partner credit: eligible

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.