{"uid":"cap_6ZoRs07WSipZ5ooeIJ8Li","slug":"crypto-order-book-depth-api-2af7280c","name":"Crypto Order Book Depth API","description":"L2 ORDER-BOOK DEPTH — the live bid/ask ladder for any crypto pair, normalized across Coinbase, Binance.US and Kraken (auto-fallback, or pick a source). Returns bids/asks to your depth plus the analytics that matter: mid, spread (absolute + bps), book liquidity per side, and slippage estimates for $1k/$10k/$100k market orders both directions. Deterministic, no keys, ~1.5s cache. ?pair=BTC-USD&depth=50&source=auto","url":"https://api.webbersites.com/api/orderbook","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":"BASE-QUOTE, e.g. BTC-USD, ETH-USD, SOL-USD"},"depth":{"type":"number","description":"price levels per side, 1-200 (default 50)"},"source":{"type":"string","description":"auto (default), coinbase, binance, kraken"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mid":{"type":"number"},"asks":{"type":"array"},"bids":{"type":"array"},"pair":{"type":"string"},"source":{"type":"string"},"spread":{"type":"number"},"best_ask":{"type":"object"},"best_bid":{"type":"object"},"slippage":{"type":"object"},"spread_bps":{"type":"number"},"liquidity_quote":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"mid":62655.35,"asks":[[62655.35,0.4]],"bids":[[62655.34,1.25]],"pair":"BTC-USD","source":"coinbase","spread":0.01,"best_ask":{"size":0.4,"price":62655.35},"best_bid":{"size":1.25,"price":62655.34},"slippage":{"buy":[{"fillable":true,"notional":100000,"avg_price":62658.15,"filled_base":1.596,"vs_best_bps":0.45}],"sell":["…"]},"spread_bps":0.002,"liquidity_quote":{"asks":764210.9,"bids":812443.1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1hBrWcUmIQR4EZ7FQseTh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live bid/ask ladder with analytics (mid, spread, slippage estimates) for crypto pairs normalized across Coinbase, Binance.US, and Kraken","exampleAgentPrompt":"Pull the live order book for BTC-USD with 50 levels per side using auto source selection, and tell me the current spread in basis points plus how much slippage I'd face on a $10k market buy.","exampleUseCases":null,"resultDescription":"Returns a structured object with full bids/asks arrays at the requested depth, best bid/ask objects, mid price, absolute spread and spread in basis points, per-side liquidity in quote currency, and slippage estimates for $1k/$10k/$100k market orders in both directions, sourced from whichever exchange was selected or auto-selected.","failureModes":["Invalid pair format (not BASE-QUOTE style) returns an error","Depth out of range (outside 1-200) may return default or error","All three exchange sources unavailable causes fetch failure","Unknown source parameter value returns an error","Network timeout from upstream exchange causes stale or empty response"],"whenToPreferThis":"Choose this endpoint when you need normalized, cross-exchange order book data for crypto pairs with built-in analytics like spread, slippage estimates, and liquidity depth — especially when you want auto-fallback across Coinbase, Binance.US, and Kraken without managing multiple exchange connections yourself. Ideal for trading bots, pre-trade analysis, and market microstructure queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:35.296Z","isFirstParty":false}