{"uid":"cap_Fi1BgfzNds4nLhxCJcV-T","slug":"hyperliquid-perpetuals-level-1-order-book-x402-f5133795","name":"Hyperliquid Perpetuals Level 1 Order Book (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/v1/perpetuals/level1?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_p9qlVlQhhRsLXjV3ICt2-","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 top-of-book Level 1 order book (bids, asks, spread, mid price) for BTC, ETH, or SOL perpetual futures on Hyperliquid, paid per-call via x402 USDC on Base.","exampleAgentPrompt":"Pull the current BTC perpetuals order book from Hyperliquid — I want the best bid, best ask, mid price, and spread in bps, showing 10 levels per side.","exampleUseCases":[{"title":"Pre-trade slippage check for perp bot","prompt":"Before I submit a BTC perp order, check the current Level 1 order book on Hyperliquid — I need the best bid, best ask, and spread so I can estimate slippage on a 2 BTC position."},{"title":"ETH perp spread monitoring alert","prompt":"Keep an eye on the ETH perpetuals order book on Hyperliquid and alert me if the bid-ask spread goes above 1 basis point — check every 30 seconds."},{"title":"SOL perps market depth snapshot","prompt":"Give me a snapshot of the SOL perpetuals order book right now with 15 levels per side, so I can see where the liquidity walls are before I size my position."}],"resultDescription":"Returns a JSON object with the coin symbol, venue (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), data sources, and an updated_at timestamp.","failureModes":["Invalid or unsupported coin symbol returns an error (only BTC, ETH, SOL supported)","Depth parameter outside 1–20 range rejected with validation error","x402 payment failure (insufficient USDC balance, wrong chain, or wallet not configured) blocks the call","Hyperliquid upstream API unavailability causes data fetch failure","Stale or missing updated_at if upstream is slow to respond"],"whenToPreferThis":"Choose this endpoint when your trading or onchain AI agent needs real-time, exchange-level perpetuals order book data from Hyperliquid specifically — including precise bid/ask levels and spread in bps — without needing to manage API keys. Prefer it over generic price feeds when you need depth beyond best-price, or when you are operating on Hyperliquid and need venue-native quotes. The pay-per-call x402 micropayment model makes it ideal for agents that call infrequently or want to avoid subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:25.192Z","isFirstParty":false,"canonicalSlug":"hyperliquid-perpetuals-level-1-order-book-x402-f5133795"}