{"uid":"cap_F8GxFQS-1o2hySIdrMwl0","slug":"crypto-order-book-depth-slippage-estimator-546565c3","name":"Crypto Order Book Depth & Slippage Estimator","description":"What a trade actually costs before it is placed: live order book depth on Bybit and OKX, walked at your size. Give it a notional in dollars and it returns the average fill price, slippage against mid in basis points and dollars, the spread, the depth within 1% of mid, and which venue is cheaper for that exact size — separately for buying and selling. A size the book cannot absorb is reported as unfilled, never priced by extrapolation.","url":"https://crypto-asistent.com/api/x402/data/orderbook-depth?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vf5hoI69NRHl-r3vOy58m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","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 depth analysis for a given notional size on Bybit and OKX, including average fill price, slippage in bps and dollars, spread, and which venue is cheaper.","exampleAgentPrompt":"Before I buy $75,000 worth of ETH, check the live order book on Bybit and OKX and tell me the expected fill price, slippage in basis points, and which venue would be cheaper for that size.","exampleUseCases":[{"title":"Pre-trade cost check for large BTC buy","prompt":"I want to buy $250,000 of BTC — can you check the live order books on Bybit and OKX and tell me the average fill price, slippage, and which exchange is cheaper for that size?"},{"title":"Sell-side liquidity check before exiting position","prompt":"I'm planning to sell $100,000 of SOL and want to know if the order book can absorb it — give me the slippage estimate, depth within 1% of mid, and the better venue to sell on between Bybit and OKX."},{"title":"Spread and depth monitoring for algo trading","prompt":"What's the current bid-ask spread and order book depth within 1% of mid for ETH on Bybit and OKX for a $30,000 trade size, both buy and sell side?"}],"resultDescription":"Returns a structured breakdown for both buy and sell sides: average fill price, slippage in basis points and in dollar terms, the bid-ask spread, order book depth within 1% of mid-price, and a recommendation of which venue (Bybit or OKX) is cheaper for the requested notional. If the order book cannot absorb the requested size, the response reports the trade as unfilled rather than extrapolating a price.","failureModes":["Order book cannot absorb requested notional size — returned as 'unfilled' with no price estimate","Invalid or unsupported trading pair causes error","Stale or temporarily unavailable order book data from Bybit or OKX","Missing required 'input' body field causes schema validation failure","Network timeout fetching live order book snapshots"],"whenToPreferThis":"Use this endpoint when you need real pre-trade cost transparency for a specific notional size — not just a spot price, but the actual expected fill price accounting for order book depth and slippage across Bybit and OKX. Prefer it over simple price feeds when executing or planning trades above ~$10,000 where slippage materially affects cost, or when comparing venue execution quality. Unlike generic price APIs, this endpoint walks the live book at your exact size and returns a venue recommendation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:44:24.221Z","isFirstParty":false,"canonicalSlug":"crypto-order-book-depth-slippage-estimator-546565c3"}