{"uid":"cap_ld-pIxqfzdX_FT4Pq7WvA","slug":"hyperliquid-perp-orderbook-depth-api-0f73a2e3","name":"Hyperliquid Perp Orderbook Depth API","description":"Live perp orderbook depth (Hyperliquid): best bid/ask, spread in bps, mid, bid/ask depth in USD, imbalance, top-15 levels each side. Microstructure signal for trading agents. Param: coin (e.g. BTC, ETH, SOL, HYPE).","url":"https://opportunity-api-production.up.railway.app/api/orderbook","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","required":[],"properties":{"coin":{"type":"string","description":"Hyperliquid perp symbol, e.g. BTC, ETH, SOL, HYPE. Default BTC"}}}},"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_2oOHz3WSassAZl3iNEGvB","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 real-time perpetual futures orderbook microstructure for a given coin on Hyperliquid: best bid/ask, spread in bps, mid price, bid/ask USD depth, imbalance, and top-15 levels per side.","exampleAgentPrompt":"Pull the live orderbook for BTC perps on Hyperliquid and tell me the best bid/ask, spread in bps, and whether there's a notable order imbalance right now.","exampleUseCases":null,"resultDescription":"Returns a structured snapshot of the Hyperliquid perpetual futures orderbook for the requested coin, including: best bid price, best ask price, spread in basis points, mid price, total bid-side and ask-side USD depth, an order imbalance metric, and the top 15 price levels on each side with their sizes.","failureModes":["Invalid or unsupported coin symbol returns an error or empty response","Hyperliquid API downtime causes upstream failure","Network timeout if Hyperliquid exchange is slow to respond","Missing coin parameter defaults to BTC rather than returning an error","Payment not included or insufficient USDC results in HTTP 402"],"whenToPreferThis":"Use this endpoint when you need real-time perpetual futures orderbook microstructure specifically from Hyperliquid — including spread, depth, and imbalance signals — for trading agents, execution algorithms, or market analysis. Prefer this over generic price feeds when you need multi-level depth data (top 15 levels) and order imbalance signals rather than just spot prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:34:33.665Z","isFirstParty":false}