{"uid":"cap_jgGYn98105wp81O3as9W-","slug":"x402-shizu-me-order-book-33f456a5","name":"x402.shizu.me Order Book","description":"Live order book for a crypto pair (e.g. BTC-USD). Default level=1: best bid/ask with sizes, mid price, spread, and spread_bps. level=2 adds top-of-book depth (depth param, 1-50 price levels per side, default 20). Real-time from Coinbase. Use for trading signals, spread monitoring, liquidity checks, and execution decisions.","url":"https://x402.shizu.me/orderbook","method":"GET","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["method"],"properties":{"method":{"const":"GET"},"queryParams":{"type":"object","required":["pair"],"properties":{"pair":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ask":[62541.8,0.3],"bid":[62540.2,0.5],"mid":62541,"pair":"BTC-USD","level":1,"spread":1.6,"spread_bps":0.256}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__J7z2TeMEBIGfddmA5o69","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time Coinbase order book data for a crypto pair, including best bid/ask, mid price, spread, and optional depth levels","exampleAgentPrompt":"Pull the full order book for BTC-USD with depth level 2 and show me the top 10 price levels on each side — I want to see the spread in basis points and check liquidity before placing a trade.","exampleUseCases":[{"title":"Monitor spread for algorithmic trading","prompt":"Check the current bid-ask spread for ETH-USD right now and let me know if it's tight enough to execute my arbitrage algorithm — I need the spread in basis points."},{"title":"Assess liquidity before large order","prompt":"Get the level 2 order book for SOL-USD and show me the top 15 price levels on each side — I'm planning a substantial trade and need to understand the liquidity depth."},{"title":"Track real-time market depth changes","prompt":"Pull the order book for BTC-USD every few seconds and alert me if the mid price moves significantly or if the best bid-ask sizes drop below a certain threshold — I'm monitoring market conditions closely."}],"resultDescription":"Returns the current order book for the requested crypto pair. At level 1: best bid price and size, best ask price and size, mid price, spread, and spread in basis points. At level 2: all of the above plus up to 50 price levels per side (bid and ask), showing price and size at each level. Data is sourced in real-time from Coinbase.","failureModes":["Invalid or unsupported trading pair returns an error (e.g. unsupported pair code)","depth parameter out of range (must be 1-50) returns a validation error","level parameter must be 1 or 2; other values return an error","Coinbase connectivity issues may cause temporary data unavailability","Payment failure (insufficient USDC balance) blocks the request"],"whenToPreferThis":"Use this endpoint when you need real-time order book data for crypto trading decisions, spread monitoring, or liquidity analysis sourced directly from Coinbase. Prefer this over spot price endpoints when you need depth of market, bid/ask spread, or execution quality signals. Choose level=2 when you need to assess market depth beyond the best bid/ask.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:57:52.547Z","isFirstParty":false}