{"uid":"cap_QGfM-PAxo6Xq7pa0IDxFR","slug":"crypto-perpetual-market-order-book-d82142d8","name":"Crypto Perpetual Market Order Book","description":"Live L2 order book for a crypto perp market: aggregated bids and asks with price, size and resting-order count per level, plus the best bid/ask spread, spread % and mid price. Real-time market-depth snapshot for a coin (BTC, ETH, SOL, and more); pass `depth` for how many price levels per side. Data source: Hyperliquid (dYdX fallback).","url":"https://crypto.openverbs.com/v1/orderbook?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"coin":{"type":"string","maxLength":20,"minLength":1,"description":"Coin symbol, e.g. \"BTC\", \"ETH\", \"SOL\"."},"depth":{"type":"integer","maximum":100,"minimum":1,"description":"How many price levels per side (default 20; Hyperliquid serves up to 20, dYdX up to 100)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GAT0vvlMS_86KIhpAmLM4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a real-time L2 order book snapshot for a crypto perpetual futures market, including aggregated bids/asks by price level, best bid/ask spread, spread percentage, and mid price.","exampleAgentPrompt":"Pull me the live order book for BTC perpetuals right now — give me the top 20 price levels on each side so I can see the spread and mid price.","exampleUseCases":[{"title":"Pre-trade liquidity check for large BTC order","prompt":"Before I place a large BTC perp trade, can you show me the order book depth — give me 50 levels on each side so I can see where the liquidity thins out and estimate my slippage?"},{"title":"Spread monitoring for ETH perp arbitrage","prompt":"What's the current bid-ask spread and mid price on the ETH perpetual market? Show me the top 5 price levels so I can see if there's an arb opportunity."},{"title":"Real-time SOL market depth dashboard","prompt":"Grab the full L2 order book for SOL perp with 100 price levels per side — I want to see the resting order counts and sizes at each level for my market depth chart."}],"resultDescription":"A JSON snapshot containing aggregated bid and ask levels (each with price, size, and resting order count), the best bid price, best ask price, raw spread, spread as a percentage, and mid price. Sourced from Hyperliquid with dYdX as a fallback.","failureModes":["Unsupported coin symbol returns an error or empty book","Depth value out of range (>100 or <1) returns a validation error","Hyperliquid and dYdX both unavailable causes a service error","Network timeout if upstream DEX data feed is slow","Stale data if the upstream source has a temporary feed interruption"],"whenToPreferThis":"Choose this endpoint when you need a real-time, granular L2 order book snapshot for a crypto perpetual futures market from on-chain DEX sources (Hyperliquid/dYdX), especially when you need per-level resting order counts, spread metrics, and mid price in a single call. Prefer over generic price feeds when market depth and liquidity structure matter, such as for pre-trade analysis, slippage estimation, or arbitrage detection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:37:54.514Z","isFirstParty":false,"canonicalSlug":"crypto-perpetual-market-order-book-d82142d8"}