{"uid":"cap__-CWuw0rF9rtVx1h4T2ys","slug":"crypto-spot-price-aggregator-median-multi-exchange-e1b7168b","name":"Crypto Spot Price Aggregator (Median, Multi-Exchange)","description":"Spot USD prices: median of Coinbase, Kraken, Bybit, Binance, CoinGecko (whichever respond) with n_sources, dispersion_bps, with 24h change/volume. symbols=BTC,ETH,SOL default; also BNB,XRP,DOGE,ADA,AVAX,LINK,SUI.","url":"https://kr-x402-mvp.kgy5612.workers.dev/crypto/prices?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_1dbTC27w0bibkzDN9w8Yo","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 right now — pull from multiple exchanges and give me the median price along with how much they've moved in the last 24 hours?","exampleUseCases":[{"title":"Pre-trade price sanity check","prompt":"Before I swap, what's the current median BTC price across Coinbase, Binance, and Kraken, and how dispersed are the quotes right now?"},{"title":"DeFi portfolio valuation","prompt":"I need the current USD prices for BTC, ETH, SOL, ADA, and AVAX to calculate my portfolio value — pull from multiple sources and show me each coin's 24h change."},{"title":"Crypto market alert bot","prompt":"Check the current prices for DOGE, XRP, and LINK and tell me which ones have moved more than 2% in the last 24 hours."}],"resultDescription":"A JSON object with a 'prices' map keyed by symbol (e.g. BTC), each containing the median USD price, per-exchange prices, 24h percentage change, and volume. Also includes a 'sources' array listing the exchange URLs that responded, the number of sources contributing to the median, dispersion in basis points, and an 'updated_at' ISO timestamp.","failureModes":["If all exchanges are unreachable, no median can be computed and the endpoint may return an error or empty prices object","If a symbol is not supported (outside BTC,ETH,SOL,BNB,XRP,DOGE,ADA,AVAX,LINK,SUI), it may be omitted from results or return an error","Dispersion may be high if exchanges disagree significantly, indicating potential data quality issues","Payment failure (x402) will block access if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a robust, manipulation-resistant spot price that is the median across multiple top exchanges rather than trusting a single source. Ideal for trading agents, DeFi bots, or portfolio valuations where price reliability and source transparency (n_sources, dispersion_bps) matter. Prefer this over single-exchange feeds when cross-exchange consistency is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:10.940Z","isFirstParty":false,"canonicalSlug":"crypto-spot-price-aggregator-median-multi-exchange-e1b7168b"}