{"uid":"cap_Ooyvoqj6bHnxOy0ZcAUIz","slug":"sitecheck-crypto-order-book-2d8636d1","name":"SiteCheck Crypto Order Book","description":"A level-2 order book snapshot for a Coinbase pair: best bid and ask, mid price, spread in price and basis points, and the top bids and asks up to depth 50. It is a snapshot, not a quote: prices move between calls. Information only, not financial advice.","url":"https://api.sitecheck-api.workers.dev/api/crypto/orderbook?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":["pair"],"properties":{"pair":{"type":"string","description":"Coinbase product, e.g. BTC-USD"},"depth":{"type":"string","description":"1 to 50 levels per side (default 10)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mid":83645.775,"asks":[{"size":0.0000633,"price":83645.78},{"size":0.09563486,"price":83651.5}],"bids":[{"size":0.50964207,"price":83645.77},{"size":0.01669213,"price":83644.1}],"pair":"BTC-USD","depth":5,"source":"Coinbase Exchange public order book (level 2, snapshot)","spread":0.01,"bestAsk":83645.78,"bestBid":83645.77,"checkedAt":"2026-10-14T04:49:20.542Z","spreadBps":0.0012,"disclaimer":"Information only, not financial advice."}},"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_fpZN3TRCNujoqKJwrrmU2","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 a level-2 snapshot of the Coinbase Exchange public order book for a given trading pair, returning bids, asks, spread, and mid price.","exampleAgentPrompt":"Can you pull the current order book for BTC-USD showing the top 20 levels on each side — I want to see the best bid, best ask, spread in bps, and mid price right now?","exampleUseCases":[{"title":"Real-time spread monitoring for trading bot","prompt":"Check the current bid-ask spread for ETH-USD and tell me the spread in basis points and the mid price — I want to know if it's tight enough to place a market order right now."},{"title":"Market depth analysis before large trade","prompt":"Pull the top 15 levels of the BTC-USD order book so I can see how much liquidity is stacked on each side before I decide on order size."},{"title":"Crypto price discovery for portfolio app","prompt":"What's the current best bid and best ask for SOL-USD, and what's the mid price? I need a live quote to display in my portfolio tracker."}],"resultDescription":"Returns a JSON object containing the trading pair, snapshot timestamp, bid and ask arrays (each with price and size), best bid, best ask, mid price, spread, spread in basis points, order book depth, data source attribution, and a disclaimer. Data is sourced from the Coinbase Exchange level-2 public order book.","failureModes":["Invalid or unsupported trading pair returns an error — only Coinbase product IDs (e.g. BTC-USD) are accepted","Depth parameter out of range (must be 1–50) may return a validation error","Coinbase Exchange API downtime or rate limiting may cause upstream failures","Network timeout on the Cloudflare Worker may result in a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a real-time level-2 order book snapshot from Coinbase Exchange, including bid/ask ladders, spread, and mid price for a specific trading pair. It is ideal for agents that require current market microstructure data (not just a ticker price) and want it via a simple pay-per-call HTTP GET with no exchange API key required. Prefer alternatives if you need streaming/WebSocket order book updates, historical order book data, or order books from exchanges other than Coinbase.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:51.233Z","isFirstParty":false,"canonicalSlug":"sitecheck-crypto-order-book-2d8636d1"}