{"uid":"cap_jiUAh7d-0kBGfVFDemjyG","slug":"coinbase-spot-order-book-a4000f3a","name":"Coinbase Spot Order Book","description":"Live order book for a Coinbase spot pair: best bid/ask, mid price, spread in bps, USD liquidity within 1% of mid on each side, and the top bid/ask levels (up to 50). Useful for slippage and execution checks.","url":"https://dt0ur.online/api/market/orderbook?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"depth":{"type":"integer","default":20,"maximum":50,"minimum":1},"product":{"type":"string","description":"Coinbase product id, e.g. BTC-USD, ETH-USD, SOL-USD, ETH-BTC"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yGNsoVobukFZVPMHsduVR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live order book data for a Coinbase spot trading pair, including best bid/ask, mid price, spread in basis points, USD liquidity within 1% of mid, and top bid/ask levels.","exampleAgentPrompt":"Pull the live order book for BTC-USD on Coinbase with 30 levels of depth — I need the best bid and ask, the spread in basis points, and how much USD liquidity is sitting within 1% of mid on each side.","exampleUseCases":[{"title":"Pre-trade slippage check for large ETH buy","prompt":"Before I place a large ETH buy, can you pull the ETH-USD order book with 50 levels deep and tell me how much USD liquidity is within 1% of mid on the ask side so I can estimate my slippage?"},{"title":"Real-time spread monitoring for SOL-USD","prompt":"What's the current bid-ask spread in basis points for SOL-USD on Coinbase? Show me the top 10 levels on each side too."},{"title":"Cross-pair liquidity comparison for ETH-BTC","prompt":"I'm deciding whether to trade ETH directly for BTC or route through USD — can you check the ETH-BTC order book with 20 levels and show me the mid price, spread, and liquidity within 1% of mid?"}],"resultDescription":"Returns a structured snapshot of the live Coinbase order book for the requested pair, including: best bid price and size, best ask price and size, mid price, spread in basis points, total USD liquidity within 1% of mid on both the bid and ask sides, and the top N bid/ask price levels (up to 50) with sizes.","failureModes":["Invalid product ID returns an error — must use a valid Coinbase product format like BTC-USD, ETH-USD, SOL-USD, ETH-BTC","Depth out of range (less than 1 or greater than 50) will be rejected","Network or exchange connectivity issues may return stale or unavailable data","Payment failure for the $0.01 USDC per call fee results in 402 error"],"whenToPreferThis":"Use this endpoint when you need real-time Coinbase-specific order book data for execution quality checks, slippage estimation, or market microstructure analysis. Prefer this over generic price feeds when you need depth-of-book liquidity data (not just last traded price), spread in basis points, or USD liquidity within a price band — especially for pre-trade analysis on Coinbase spot pairs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:47:51.800Z","isFirstParty":false,"canonicalSlug":"coinbase-spot-order-book-a4000f3a"}