{"uid":"cap_n2ny7sltyhvyZ_uEPUBR9","slug":"crypto-spot-usd-price-feed-f3592f89","name":"Crypto Spot USD Price Feed","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/usd-price?utm_source=zero.xyz","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","properties":{"symbols":{"type":"string","examples":["BTC,ETH,SOL","BTC"],"description":"Comma-separated symbols (default BTC,ETH,SOL)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"prices":{"BTC":{"price_usd":80867.7,"binance_usdt":80860,"coinbase_usd":80875.4,"change_24h_pct":1.2}},"sources":["https://api.binance.com","https://api.coinbase.com"],"updated_at":"2026-10-28T11:00:00Z"}},"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_7DGJyoUNahMFU6GqQzaoC","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 aggregated spot USD prices for major cryptocurrencies, computed as a median across up to five exchanges (Coinbase, Kraken, Bybit, Binance, CoinGecko), with source count, dispersion, 24h change, and volume.","exampleAgentPrompt":"What are the current spot USD prices for BTC, ETH, and SOL, pulled from multiple exchanges so I get a reliable median?","exampleUseCases":[{"title":"Trading bot price check","prompt":"Get me the latest median USD prices for BTC, ETH, and SOL from multiple exchanges, including how much they've moved in the last 24 hours."},{"title":"Portfolio valuation snapshot","prompt":"I need current USD prices for BTC, ETH, BNB, ADA, and AVAX so I can value my crypto portfolio right now — pull from as many sources as possible."},{"title":"Cross-exchange arbitrage monitoring","prompt":"What's the current price dispersion in basis points for XRP and DOGE across exchanges? I want to know if there's a gap worth trading."}],"resultDescription":"A JSON object with a 'prices' map keyed by symbol, each containing the median USD price, individual exchange prices (Coinbase, Binance, etc.), 24h percent change, and volume. Also includes a list of data sources used and the 'updated_at' timestamp. Quality metadata like n_sources and dispersion_bps indicate how many exchanges responded and how spread the quotes are.","failureModes":["Symbol not supported — only BTC, ETH, SOL, BNB, XRP, DOGE, ADA, AVAX, LINK, SUI are supported; unsupported symbols return missing or empty data","Payment failure — x402 micropayment of 0.003 USDC on Base not completed, returns 402","Fewer sources than expected — if some exchanges are down, n_sources will be lower and dispersion may be less meaningful","Stale data — updated_at may lag real-time by seconds if upstream APIs are slow","Invalid symbols format — malformed comma-separated list may result in errors or empty response"],"whenToPreferThis":"Choose this endpoint when you need a robust, multi-source median price rather than trusting a single exchange feed. Ideal for trading agents, portfolio valuation, and DeFi workflows that require reliable USD price references for major cryptocurrencies without setting up API keys with individual exchanges. Pay-per-call micropayment model via x402 makes it suitable for occasional or low-frequency agent use without subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:28.933Z","isFirstParty":false,"canonicalSlug":"crypto-spot-usd-price-feed-f3592f89"}