{"uid":"cap_TnJVuHu_6tTLTFkIQts2K","slug":"alf-orderbook-depth-tool-b7e18b80","name":"Alf Orderbook Depth Tool","description":"Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.","url":"https://agent.maddegen.art/hub/api/v1/tools/orderbook_depth?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["pair"],"properties":{"pair":{"type":"string"},"venue":{"enum":["coinbase","kraken","okx"],"type":"string"}}},"responseSchema":{"ms":120,"ok":true,"data":{"summary":"How much size a market can take: bid/ask depth within ±0.1/0.5/1/2/5%, spread, and the slippage of a $10k/$100k/$1M market order on Kraken, Coinbase or OKX."},"tool":"orderbook_depth","billing":{"usd":0.003,"mode":"x402"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_miYKnUn9zzw2trsgsSfSm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns bid/ask depth, spread, and slippage estimates for a trading pair on Coinbase, Kraken, or OKX","exampleAgentPrompt":"What's the orderbook depth and slippage estimate for a $100k market buy of BTC-USD on Kraken right now — show me the bid/ask depth within 1% and 5% of mid, and the spread?","exampleUseCases":[{"title":"Pre-trade slippage check for large order","prompt":"Before I place a $1M market buy of ETH-USDT on OKX, can you tell me how much slippage I should expect and how deep the order book is within 0.5% and 2% of the current mid price?"},{"title":"Liquidity comparison across exchanges","prompt":"I want to know how liquid SOL-USD is on Coinbase vs Kraken — can you pull the orderbook depth and spread for both so I can decide where to execute?"},{"title":"Real-time spread monitoring for arbitrage","prompt":"Check the current bid/ask spread and depth within 0.1% for BTC-USD on Coinbase and OKX — I'm looking for tight spreads to exploit a small arb window."}],"resultDescription":"Returns a summary of bid and ask depth at multiple price band thresholds (±0.1%, 0.5%, 1%, 2%, 5% from mid), the current bid/ask spread, and estimated slippage for $10k, $100k, and $1M market orders on the requested venue. Response is delivered in approximately 120ms.","failureModes":["Invalid or unsupported trading pair returns an error","Venue not in enum (coinbase, kraken, okx) causes validation failure","Exchange API downtime may cause timeout or stale data","Missing required 'pair' field returns a schema validation error","Payment failure via x402 protocol prevents execution"],"whenToPreferThis":"Use this endpoint when you need fast, structured orderbook depth and slippage analysis for a specific trading pair on Coinbase, Kraken, or OKX — particularly for pre-trade analysis of large orders or liquidity assessment. Prefer this over raw exchange APIs when you want a normalized, multi-level depth summary with slippage estimates in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:49:45.764Z","isFirstParty":false,"canonicalSlug":"alf-orderbook-depth-tool-b7e18b80"}