{"uid":"cap_AfBems-w83GTO_vIVr5oJ","slug":"crypto-spot-price-oracle-multi-exchange-median-7a5b654c","name":"Crypto Spot Price Oracle (Multi-Exchange Median)","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/v1/crypto/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_05JPTKPcuSa3zq3f1ZUG1","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 Coinbase, Kraken, Bybit, Binance, and CoinGecko, with source count, dispersion, 24h change, and volume.","exampleAgentPrompt":"What are the current spot prices for BTC, ETH, and SOL — give me the median across exchanges and show me the 24-hour change too?","exampleUseCases":[{"title":"Portfolio valuation snapshot","prompt":"Give me the current USD prices for BTC, ETH, SOL, and ADA — I want the median across major exchanges and the 24h change for each so I can see how my portfolio is doing today."},{"title":"Trading bot price feed","prompt":"Fetch me the latest spot prices for BTC and ETH with exchange-level breakdown and dispersion in basis points — my algo needs to know if quotes are diverging across venues."},{"title":"Crypto market morning briefing","prompt":"What's the current price of BTC, ETH, SOL, XRP, and DOGE, and how much has each moved in the last 24 hours? Pull from multiple exchanges and give me the aggregated median."}],"resultDescription":"A JSON object with per-symbol price data including median USD price, individual exchange quotes (Coinbase, Binance, etc.), 24h percentage change, trading volume, number of sources that responded (n_sources), price dispersion in basis points (dispersion_bps), and an updated_at timestamp.","failureModes":["Symbol not supported — only BTC, ETH, SOL, BNB, XRP, DOGE, ADA, AVAX, LINK, SUI are available","All upstream exchanges unavailable — no price returned for a symbol","Payment not received or invalid — x402 payment required at $0.003 USDC per call","Malformed symbols query param — comma-separated list expected","Partial data — some exchanges may not respond, n_sources will be lower than expected"],"whenToPreferThis":"Choose this endpoint when you need a robust, manipulation-resistant spot price that aggregates across multiple top exchanges rather than trusting a single source. Ideal for trading agents, portfolio valuation, or any workflow needing real-time crypto prices with quality metadata (dispersion, source count). Prefer over single-exchange APIs when price reliability and cross-exchange consensus matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:20.816Z","isFirstParty":false,"canonicalSlug":"crypto-spot-price-oracle-multi-exchange-median-7a5b654c"}