{"uid":"cap_HXGMZBviViNdpgF6bhIIM","slug":"aayat-ai-perpetual-futures-order-book-6ecd51f7","name":"Aayat AI Perpetual Futures Order Book","description":"Live order book for a perpetual futures market on Hyperliquid or dYdX: best bid and ask, spread in bps, USD depth within 10/50/100 bps of mid, and the average fill price and slippage of a market buy and sell of your size. Pass ?coin=ETH&sizeUsd=25000 (&venue=dydx).","url":"https://aayatai.com/perps/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","required":["coin"],"properties":{"coin":{"type":"string","maxLength":20,"description":"Market symbol, e.g. BTC, ETH, SOL."},"venue":{"enum":["auto","hyperliquid","dydx"],"type":"string","default":"auto","description":"auto (default: Hyperliquid, or dYdX while Hyperliquid is unavailable), hyperliquid or dydx."},"detail":{"enum":["full","brief"],"type":"string","default":"full","description":"brief = key fields only (same price)"},"levels":{"type":"integer","default":10,"maximum":20,"minimum":0,"description":"Price levels to return per side (0-20)."},"sizeUsd":{"type":"number","default":10000,"maximum":10000000,"minimum":100,"description":"Order size in USD for the slippage estimate (100 to 10,000,000)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_pIyWAFtEp_byI-I2TdZyO","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 live order book data for a perpetual futures market on Hyperliquid or dYdX, including best bid/ask, spread, USD depth, and slippage estimate for a given trade size.","exampleAgentPrompt":"What's the live order book for ETH perps on Hyperliquid right now — best bid and ask, the spread in bps, and how much slippage I'd expect on a $25,000 market buy?","exampleUseCases":[{"title":"Pre-trade slippage check for large order","prompt":"Before I put in a $100,000 market buy on BTC perpetuals, can you check the Hyperliquid order book and tell me the expected fill price and slippage?"},{"title":"Compare liquidity across venues","prompt":"Pull the ETH perp order book on both Hyperliquid and dYdX — I want to see the spread and USD depth within 50 bps on each so I can pick the better venue."},{"title":"Monitor SOL perp spread for tight entry","prompt":"Check the current bid-ask spread and top 10 order book levels for SOL perpetuals on Hyperliquid — I want to know if conditions are tight enough to enter a $15,000 position."}],"resultDescription":"Returns best bid and ask prices, spread in basis points, USD liquidity depth within 10, 50, and 100 bps of mid-price, estimated average fill price for a market order of the specified size, and slippage in bps/percent. Optionally includes full price-level breakdown (up to 20 levels per side).","failureModes":["Invalid coin symbol returns an error or empty result","Venue unavailable (e.g. Hyperliquid down) may fall back to dYdX in auto mode or return error if venue is explicitly specified","sizeUsd outside allowed range (100–10,000,000) returns validation error","Network latency may cause stale or delayed order book snapshot","dYdX may not list all coins available on Hyperliquid, returning not-found error"],"whenToPreferThis":"Use this endpoint when an agent needs real-time order book data and pre-trade slippage estimates for perpetual futures on Hyperliquid or dYdX — especially before executing or recommending a large trade. Prefer this over generic price feeds when execution quality, market depth, and fill cost matter. The slippage estimate is purpose-built for DeFi perpetuals and covers both venues, making it more actionable than a simple last-price lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:47:34.488Z","isFirstParty":false,"canonicalSlug":"aayat-ai-perpetual-futures-order-book-6ecd51f7"}