{"uid":"cap_12svpE2sjF0bvQarG4jCB","slug":"token-prices-defillama-88e27f38","name":"Token Prices (DefiLlama)","description":"Current token prices from DefiLlama. Query: coins — a comma list of coin ids like coingecko:bitcoin or <chain>:<address> (up to 50). Each: price, symbol, timestamp, confidence. Prices move — poll it.","url":"https://x402.shizu.me/llama/prices","method":"GET","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["method"],"properties":{"method":{"const":"GET"},"queryParams":{"type":"object","required":["coins"],"properties":{"coins":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"count":2,"prices":{"coingecko:bitcoin":{"price":64428.4,"symbol":"BTC","timestamp":1785311942,"confidence":0.99}},"source":"defillama"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nMXhwRD2-0rcUaQIxlok_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current prices, symbols, timestamps, and confidence scores for up to 50 tokens identified by CoinGecko ID or on-chain address, sourced from DefiLlama.","exampleAgentPrompt":"What are the current prices for Bitcoin, Ethereum, and the USDC token on Arbitrum (0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8)?","exampleUseCases":[{"title":"DeFi portfolio valuation","prompt":"I need the current prices for coingecko:bitcoin, coingecko:ethereum, and coingecko:solana so I can calculate the total value of my crypto portfolio."},{"title":"On-chain token price lookup","prompt":"What's the current price of the Uniswap token on Ethereum — the contract address is ethereum:0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984?"},{"title":"Multi-token price monitoring bot","prompt":"Poll the live prices for coingecko:chainlink, coingecko:aave, and coingecko:uniswap every minute and alert me if any of them move more than 3% from their last recorded price."}],"resultDescription":"A JSON object keyed by coin ID, where each entry contains the token's current price in USD, its symbol, the Unix timestamp of the price data, and a confidence score (0–1) indicating data reliability. Up to 50 tokens can be returned per call.","failureModes":["Invalid coin ID format returns an error or empty result for that coin","Requesting more than 50 coins at once may be rejected or truncated","Unknown tokens or delisted coins return no data for that entry","Payment failure (402) if USDC balance is insufficient","Stale confidence score if DefiLlama upstream data is delayed"],"whenToPreferThis":"Choose this endpoint when you need live token prices from DefiLlama with confidence scores, especially for DeFi tokens identified by on-chain contract address across multiple chains — not just CoinGecko top-tier assets. Prefer it over CoinGecko direct API when you need multi-chain address-based lookups or want a paid, low-friction x402 micropayment flow without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:54.900Z","isFirstParty":false}