{"uid":"cap_jkhpc0H1q5MPsJocynXzq","slug":"defillama-current-token-prices-be047dbd","name":"DefiLlama Current Token Prices","description":"Current token prices by DefiLlama — latest USD price, symbol and decimals for one or many coins by chain:address or coingecko:id.","url":"https://defillama.use.x402atlas.com/prices-current","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["coins"],"properties":{"coins":{"type":"string","pattern":"^[A-Za-z0-9:,_.-]+$","maxLength":3000,"minLength":1,"description":"Comma-separated coins as {chain}:{address} or coingecko:{id}"},"searchWidth":{"type":"string","maxLength":200,"description":"Optional time range to search for the price (e.g. 4h)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","data"],"properties":{"data":{"type":"object","properties":{"coins":{"type":"object","description":"Map keyed by the requested coin id (e.g. coingecko:ethereum)","additionalProperties":{"type":"object","properties":{"price":{"type":"number","description":"Latest USD price"},"symbol":{"type":"string"},"decimals":{"type":"integer"}}}}}},"queried_at":{"type":"string","format":"date-time","description":"Time the upstream was queried"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"coins":{"coingecko:ethereum":{"price":3500,"symbol":"ETH","decimals":18}}},"queried_at":"2026-07-01T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dtncy-0pWtLuvyYZbVr5T","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest USD price, symbol, and decimals for one or more crypto tokens identified by chain:address or coingecko:id","exampleAgentPrompt":"What's the current USD price of WETH on Ethereum (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) and USDC on Arbitrum (arbitrum:0xaf88d065e77c8cC2239327C5EDb3A432268e5831)? Use DefiLlama prices.","exampleUseCases":[{"title":"Track portfolio token values in real-time","prompt":"I need to monitor my DeFi positions right now. Can you fetch the current USD prices for my tokens? I have USDC on Ethereum, DAI on Polygon, and USDT on Arbitrum. Use DefiLlama to get me the latest prices so I can calculate my total position value."},{"title":"Compare stablecoin prices across chains","prompt":"Help me understand the current pricing across stablecoins. What are the latest USD prices for USDC, USDT, and DAI on Ethereum, Arbitrum, and Polygon? I want to see if there are any price deviations between chains using DefiLlama data."},{"title":"Validate token prices before executing trades","prompt":"Before I execute a large swap, I need to confirm the current market prices. Can you get me the real-time USD prices for these tokens: Uniswap (UNI) by CoinGecko ID, ARB on Arbitrum, and AAVE on Ethereum? Pull from DefiLlama to make sure I have accurate pricing."}],"resultDescription":"A JSON object keyed by coin identifier containing the latest USD price, token symbol, number of decimals, and a confidence/timestamp indicator for each requested token.","failureModes":["Invalid or unrecognized coin identifier returns missing or empty data for that coin","Malformed comma-separated coins string causes request failure","Token not tracked by DefiLlama returns no price data","Rate limiting or payment failure (402) if USDC micropayment not processed","searchWidth value in wrong format may be ignored or cause error"],"whenToPreferThis":"Use this endpoint when you need real-time or near-real-time USD prices for specific on-chain tokens identified by their contract addresses or CoinGecko IDs, especially across multiple chains simultaneously. Prefer it over CoinGecko direct API when you want DefiLlama's aggregated multi-chain price feed via a simple pay-per-call model without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:07.951Z","isFirstParty":false}