{"uid":"cap_5WLQlcxz4mvzhZPze961W","slug":"hyperliquid-order-book-crypto-microdata-x402-91e9901d","name":"Hyperliquid Order Book – Crypto Microdata (x402)","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/hyperliquid/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":{"coin":{"enum":["BTC","ETH","SOL"],"type":"string","examples":["BTC","ETH","SOL"],"description":"Perp coin (default BTC)"},"depth":{"type":"integer","maximum":20,"minimum":1,"description":"Levels per side (default 5)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"mid":80860.5,"asks":[{"n":3,"px":80861,"sz":0.8}],"bids":[{"n":4,"px":80860,"sz":1.2}],"coin":"BTC","venue":"hyperliquid","sources":["https://api.hyperliquid.xyz/info"],"best_ask":80861,"best_bid":80860,"spread_bps":0.124,"updated_at":"2026-10-28T11:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wqoru3zFACvQISviaxOOn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the live Hyperliquid perpetuals order book (bids, asks, spread, mid price) for BTC, ETH, or SOL, paid per-call via x402 USDC micropayment.","exampleAgentPrompt":"Pull the Hyperliquid perpetuals order book for ETH right now — show me the top 10 levels on each side so I can see the spread and depth before I size my trade.","exampleUseCases":[{"title":"Pre-trade slippage check for perps","prompt":"Before I place a 50 ETH perp order on Hyperliquid, grab the current order book with 15 levels per side so I can estimate slippage and see how wide the spread is."},{"title":"Real-time BTC mid price feed","prompt":"What is the current mid price and spread in basis points for BTC perpetuals on Hyperliquid? I need the latest snapshot."},{"title":"Cross-venue liquidity comparison","prompt":"Fetch the top 5 levels of the SOL order book on Hyperliquid — I want to compare the best bid/ask and depth against another venue to decide where to route my order."}],"resultDescription":"A JSON object containing the coin symbol, venue name ('hyperliquid'), best bid price, best ask price, mid price, spread in basis points, arrays of bid and ask levels (each with price, size, and level count), the upstream data source URL, and an ISO-8601 updated_at timestamp.","failureModes":["Unsupported coin symbol returns validation error (only BTC/ETH/SOL accepted)","depth out of range (must be 1–20) returns 400-level error","x402 payment failure or insufficient USDC balance blocks the request","Hyperliquid upstream API downtime causes stale or missing data","Network timeout on the Cloudflare Worker edge node"],"whenToPreferThis":"Choose this endpoint when an AI trading agent needs a real-time Hyperliquid perpetuals order book snapshot without API key setup, paying only for calls made via USDC micropayment. It is ideal for agents that need live depth data for BTC, ETH, or SOL perps and want to avoid rate-limit tiers or subscription overhead. If you need order books from centralized exchanges (Binance, Coinbase) or spot markets, look elsewhere.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:30:03.720Z","isFirstParty":false,"canonicalSlug":"hyperliquid-order-book-crypto-microdata-x402-91e9901d"}