{"uid":"cap_3gXfGRFb_c3rt98TWq53-","slug":"crypto-market-data-order-book-market-microstructure-ee076065","name":"Crypto Market Data – Order Book & Market Microstructure","description":"Bid-ask spread, order-book imbalance, buyer share of the last 15 minutes and volume versus normal per coin.","url":"https://crypto-market-data.zafermemon87.workers.dev/v1/orderbook?utm_source=zero.xyz","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","properties":{"tokens":{"type":"string","description":"Comma-separated tickers, e.g. BTC,ETH,SOL (up to 50). Empty means all top 50."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"note":"Public market data, refreshed every minute. Not financial advice.","rows":[{"token":"BTC","spread_bps":0.0012,"buyer_share_15m":0.615,"orderbook_imbalance":-0.033,"volume_15m_vs_normal":1.58},{"token":"ETH","spread_bps":0.0419,"buyer_share_15m":0.588,"orderbook_imbalance":0.023,"volume_15m_vs_normal":1.65}],"tool":"orderbook","as_of":"2026-10-23T20:03:00+05:30","plain":"2 coins. Most lopsided book: BTC (-0.033).","engine":"data-1.0","charged":true,"price_usd":null,"data_age_s":60,"snapshot_seal":"eb08dce6d854951431a0fb2732282227e1d954ec072422c9bfc5bee2f3ed695f","imbalance_means":"-1 = the sell side of the order book is far heavier, +1 = the buy side is"}},"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_zzoPhByDnlNQhtmnIGVor","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns bid-ask spread, order-book imbalance, buyer share of the last 15 minutes, and volume vs. normal for up to 50 crypto coins.","exampleAgentPrompt":"Pull the current bid-ask spread, order-book imbalance, and buyer share for BTC, ETH, and SOL — I want to see if any of them have unusually lopsided books or volume spikes right now.","exampleUseCases":[{"title":"Pre-trade liquidity check for crypto","prompt":"Before I place a large ETH order, check the bid-ask spread and order-book imbalance for ETH so I can see if the book is heavily skewed to one side right now."},{"title":"Spot unusual volume across top coins","prompt":"Which of the top 50 crypto coins are trading at more than 1.5x their normal 15-minute volume right now? I want to catch any unusual activity."},{"title":"Multi-coin microstructure snapshot","prompt":"Give me a snapshot of the order-book imbalance and buyer share for BTC, ETH, SOL, and DOGE — I want to know if buyers or sellers are dominating each market in the last 15 minutes."}],"resultDescription":"Returns a JSON array of rows per requested coin, each containing: bid-ask spread in basis points (spread_bps), buyer share over last 15 minutes (buyer_share_15m, 0–1), order-book imbalance (-1 sell-heavy to +1 buy-heavy), and volume vs. normal ratio (volume_15m_vs_normal). Also includes a plain-English summary, snapshot timestamp, data age in seconds, and a cryptographic snapshot seal for integrity verification.","failureModes":["Invalid or unrecognized ticker symbols may return empty rows or errors","Data is refreshed every ~60 seconds so stale data is possible (data_age_s field indicates freshness)","Requesting more than 50 tokens may be rejected or truncated","Service may return 402 Payment Required if payment header is missing or invalid","Network timeout on the Cloudflare Workers edge if upstream exchange data is delayed"],"whenToPreferThis":"Choose this endpoint when you need real-time order-book microstructure data (spread, imbalance, buy/sell pressure) rather than just price or OHLCV data. Ideal for pre-trade analysis, detecting unusual volume spikes, or assessing liquidity conditions across multiple coins in a single call. Prefer over price-only endpoints when the question involves buyer/seller dominance, book skew, or whether current volume is anomalous relative to recent norms.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:33:27.951Z","isFirstParty":false,"canonicalSlug":"crypto-market-data-order-book-market-microstructure-ee076065"}