{"uid":"cap_md_XN-CZ0ebLk_JuTT35g","slug":"agentbit-defi-token-price-lookup-2eb1d74c","name":"AgentBit DeFi Token Price Lookup","description":"Current token prices for up to 10 tokens per call, on any chain: address as <chain>:<address> (base:0x…, ethereum:0x…) or coingecko:<id> for majors. Aggregated market price with a confidence score and timestamp, from DefiLlama's open price engine. $0.002 — priced for agents that check before every trade.","url":"https://agentbit.app/v1/defi/price","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string","description":"Single token: <chain>:<address> or coingecko:<id>"},"tokens":{"type":"array","items":{"type":"string"},"description":"Up to 10 tokens per call"}}},"responseSchema":{"type":"json","example":{"found":2,"prices":[{"as_of":"2026-09-06T14:00:00+00:00","token":"base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","decimals":6,"price_usd":0.9998,"confidence":0.99},{"as_of":"2026-09-06T14:00:00+00:00","token":"coingecko:ethereum","symbol":"ETH","decimals":null,"price_usd":4123.55,"confidence":0.99}],"source":"DefiLlama coins API (aggregated market price with confidence score)","missing":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uW0hqTkJpEx2Dex0hMuMJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches current USD prices for up to 10 DeFi tokens per call, identified by chain address or CoinGecko ID, with confidence scores powered by DefiLlama's aggregated price engine.","exampleAgentPrompt":"What's the current USD price of USDC on Base (base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) and ETH (coingecko:ethereum) right now, including confidence scores?","exampleUseCases":[{"title":"Pre-trade price check for swap","prompt":"Before I execute this swap, can you check the current prices of WETH on Base (base:0x4200000000000000000000000000000000000006) and USDC on Base (base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) so I know the exchange rate I should expect?"},{"title":"Portfolio valuation across chains","prompt":"I need current USD prices for these tokens so I can calculate my portfolio value: coingecko:bitcoin, coingecko:ethereum, coingecko:solana, base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, and ethereum:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — and tell me the confidence score for each."},{"title":"DeFi arbitrage opportunity screening","prompt":"Can you pull the current aggregated market prices with confidence scores for coingecko:usd-coin, coingecko:dai, and coingecko:tether so I can see if there's any meaningful depeg between the major stablecoins right now?"}],"resultDescription":"Returns a JSON object with a count of found tokens and an array of price records, each containing the token identifier, symbol, decimals, USD price, confidence score (0–1), and an as_of timestamp. Also reports the aggregation source (DefiLlama coins API) and lists any tokens that could not be resolved in a missing field.","failureModes":["Token address not recognized or not indexed by DefiLlama — returned in the missing field","Invalid chain prefix or malformed address format causing lookup failure","More than 10 tokens submitted in a single call — likely rejected or truncated","CoinGecko ID does not exist or is misspelled — token appears in missing","Network or upstream DefiLlama API unavailability causing timeout or error response","Stale price data if DefiLlama hasn't recently indexed a low-liquidity token"],"whenToPreferThis":"Choose this endpoint when you need real-time, aggregated token prices from DefiLlama's open price engine with confidence scores — especially before executing a DeFi trade or swap. It supports any EVM chain token by address and major assets by CoinGecko ID, making it more flexible than exchange-specific price feeds. Prefer it over raw CoinGecko or CoinMarketCap APIs when you want a single call that handles multi-chain addresses and returns confidence metadata. The $0.002/call pricing makes it cost-effective for frequent, pre-trade agent checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:05.190Z","isFirstParty":false}