{"uid":"cap_qZ5yrUvqOnT0s4B3QxLFM","slug":"x402stock-on-chain-perps-orderbook-a6258742","name":"x402stock On-Chain Perps Orderbook","description":"Pay-per-call market and economic data API for AI agents: US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities, US and global macro (Fed, CPI, jobs, GDP, Treasury, World Bank), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 on Base.","url":"https://x402stock.xyz/api/v1/perps/orderbook/%7Bcoin%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"asks":[{"size":5.04588,"price":63591,"orders":12}],"bids":[{"size":4.1275,"price":63590,"orders":10}],"coin":"BTC","as_of":"2026-06-04T00:00:00.000Z","venue":"hyperliquid","source":"x402stock"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_e9BBu_3YxN7ZTFNU6VynY","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 the live bid/ask orderbook for a crypto perpetuals contract (e.g. BTC) from Hyperliquid via x402 pay-per-call","exampleAgentPrompt":"What does the current BTC perps orderbook look like on Hyperliquid — show me the top bids and asks with sizes and prices?","exampleUseCases":[{"title":"Check BTC perp spread live","prompt":"What's the current bid-ask spread on BTC perpetual futures on Hyperliquid right now? Show me the best bid and ask prices with their sizes."},{"title":"Assess ETH perp liquidity depth","prompt":"How deep is the ETH perps orderbook on Hyperliquid? I want to see the top several levels of bids and asks so I can gauge liquidity before placing a large order."},{"title":"Compare SOL perp order flow","prompt":"Pull the live orderbook for SOL perpetual contracts on Hyperliquid — I want to see the bid and ask depth so I can spot where the order flow is clustering."}],"resultDescription":"Returns a JSON object with arrays of bid and ask entries (each with size, price, and order count), the coin symbol, a timestamp (as_of), and the venue (Hyperliquid). Costs $0.01 USDC per call via x402 on Base, no API key required.","failureModes":["Unsupported coin symbol returns an error or empty orderbook","Hyperliquid venue outage may cause stale or missing data","Malformed coin parameter in URL path returns 4xx error","Network latency may cause slight staleness in the as_of timestamp"],"whenToPreferThis":"Use this endpoint when you need live on-chain perpetual futures orderbook depth for a specific crypto asset (e.g. BTC, ETH) from Hyperliquid, without needing an API key or account — paying only $0.01 USDC per call. Prefer this over centralized exchange orderbook APIs when DeFi/on-chain data is specifically required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-09T18:30:01.926Z","isFirstParty":false}