{"uid":"cap_-NNRFVQWP3Gy-XFhIpJc4","slug":"coinbase-spot-exchange-data-4e4bb638","name":"Coinbase Spot Exchange Data","description":"Coinbase Exchange (US spot) order book for one product: best bid and ask, spread, USD depth within 1% and 2% of mid (aggregated level-2 levels only), 24h base volume, 24h RFQ (institutional request-for-quote) volume, last price and 24h high/low. Coinbase Exchange data only, not Coinbase Advanced or other venues.","url":"https://api.chainmarket-api.workers.dev/api/crypto/coinbase-spot-exchange?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","required":["product"],"properties":{"product":{"type":"string","description":"Coinbase product id such as BTC-USD or ETH-USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"last":81518.52,"low24h":80789.61,"source":"https://api.exchange.coinbase.com/products/BTC-USD/book?level=2","bestAsk":81509.89,"bestBid":81509.88,"high24h":82094.85,"open24h":81853.94,"product":"BTC-USD","midPrice":81509.88500000001,"checkedAt":"2026-10-23T09:35:56.640Z","spreadPct":0.000012,"bookSequence":138198932896,"volume24hBase":6230.94905992,"volume30dBase":151632.53425096,"depthWithin1pct":{"askUsd":6409025,"bidUsd":15266290},"depthWithin2pct":{"askUsd":8372745,"bidUsd":29406298},"rfqVolume24hBase":61.219955}},"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_4fk0GxptBwRJNAKEOAeZn","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 real-time spot price, order book depth, and 24h/30d volume statistics for a Coinbase trading pair","exampleAgentPrompt":"What's the current BTC-USD spot price on Coinbase right now, including the best bid, best ask, and 24-hour volume?","exampleUseCases":[{"title":"Real-time crypto price alert bot","prompt":"Check the current ETH-USD mid price on Coinbase and tell me if it's below $3,000 so I know whether to set a buy order."},{"title":"Order book liquidity analysis","prompt":"How much USD liquidity is sitting within 1% and 2% of the current BTC-USD mid price on Coinbase? I want to know if the market can absorb a large trade."},{"title":"Daily crypto market summary","prompt":"Give me a snapshot of BTC-USD on Coinbase for today — the 24-hour high, low, open, last price, and total volume traded."}],"resultDescription":"Returns a JSON object with the last traded price, best bid, best ask, mid price, spread percentage, 24h high/low/open, 24h base volume, 30d base volume, order book depth in USD within 1% and 2% of mid, RFQ volume, book sequence number, and a checkedAt timestamp — all sourced live from the Coinbase Exchange order book.","failureModes":["Invalid or unsupported product ID returns an error (e.g. misspelled pair like 'BTC-US')","Network or upstream Coinbase API outage may return a 5xx error","Rate limiting or payment failure results in a 402 response and no charge","Illiquid or delisted trading pairs may return incomplete depth data"],"whenToPreferThis":"Choose this endpoint when you need real-time Coinbase spot price data with full order book context (bid/ask spread, depth within 1-2%), 24h and 30d volume — especially when you want a pay-per-call approach with no API key or signup. Prefer over generic price aggregators when Coinbase-specific pricing or liquidity is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:44:15.246Z","isFirstParty":false,"canonicalSlug":"coinbase-spot-exchange-data-4e4bb638"}