{"uid":"cap_xV4es3pK16dtlhlDSOThN","slug":"cryptomacro-order-book-depth-execution-cost-analyzer-4d6f675e","name":"CryptoMacro Order Book Depth & Execution Cost Analyzer","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://asistent-crypto.vercel.app/api/x402/data/orderbook-depth","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.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_T6tM0YwjJPxz4kzTq0j0l","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 depth, average fill price, slippage in bps and dollars, spread, and venue comparison (Bybit vs OKX) for a given notional size before a trade is placed.","exampleAgentPrompt":"Before I buy $75,000 worth of BTC, walk the live order books on Bybit and OKX and tell me the average fill price, how much slippage I'd take in basis points and dollars, the spread, and which venue is cheaper for that exact size.","exampleUseCases":[{"title":"Pre-trade cost check for large ETH buy","prompt":"I'm about to buy $150,000 worth of ETH — walk the Bybit and OKX order books at that size and tell me the average fill price, slippage in bps, and which exchange is cheaper for the buy side."},{"title":"Venue comparison for large BTC sell","prompt":"I need to sell $500,000 of BTC. Check the live order book depth on Bybit and OKX and tell me which venue gives me less slippage, what the average fill price would be, and whether the book can even absorb that size."},{"title":"Liquidity check before altcoin entry","prompt":"Can the Bybit and OKX order books absorb a $30,000 buy in SOL right now? If so, what's the estimated fill price, slippage in dollars and basis points, and the spread at that size?"}],"resultDescription":"Returns for both buy and sell sides on Bybit and OKX: the average fill price at the specified notional, slippage versus mid in basis points and dollars, bid-ask spread, depth within 1% of mid, and a venue recommendation indicating which exchange is cheaper for that exact size. If the order book cannot absorb the requested size, the trade is reported as unfilled rather than extrapolated.","failureModes":["Order book cannot absorb the requested notional — returns 'unfilled' status rather than a price","Exchange API temporarily unavailable — one or both venues may return no data","Invalid or unsupported trading pair — request returns an error","Notional size of zero or negative — request rejected","Stale order book snapshot due to latency — fill price may differ slightly from actual execution"],"whenToPreferThis":"Use this endpoint when you need pre-trade execution cost transparency at a specific dollar size across Bybit and OKX — particularly for large orders where slippage and liquidity depth matter. Prefer this over generic price feeds when you need walked average fill prices rather than just the best bid/ask, and when venue comparison is needed to route the order optimally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:37:03.438Z","isFirstParty":false}