{"uid":"cap_V7gjGsg2DbdzTvFkVPf2b","slug":"okx-perpetual-order-book-snapshot-069d77f4","name":"OKX Perpetual Order Book Snapshot","description":"Live order-book snapshot for a perpetual: best bid and ask, spread, top-of-book depth and the bid/ask imbalance that signals near-term pressure. Built from OKX market depth for momentum and execution decisions an LLM cannot compute. order book depth, bid ask spread, book imbalance, liquidity Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/market/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","properties":{"symbol":{"type":"string","description":"coin symbol e.g. BTC (default BTC)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9a80alV3Y8NtjFhdhT5Vk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a live order-book snapshot for a perpetual futures contract, including best bid/ask, spread, top-of-book depth, and bid/ask imbalance derived from OKX market depth data.","exampleAgentPrompt":"Pull the live order book snapshot for BTC-USDT-SWAP right now — I want to see the best bid and ask, the spread, how deep the top of the book is, and whether the imbalance is signaling buying or selling pressure.","exampleUseCases":null,"resultDescription":"A structured snapshot containing the best bid price, best ask price, bid-ask spread, top-of-book bid and ask depth quantities, and a bid/ask imbalance ratio indicating near-term directional pressure for the requested perpetual contract.","failureModes":["Unknown or invalid symbol returns an error — ensure the symbol matches OKX perpetual format (e.g. BTC-USDT-SWAP)","OKX API unavailability may cause timeouts or stale data","Rate limiting at the provider level could return an error if called too frequently","Missing required symbol parameter returns a 400-level error"],"whenToPreferThis":"Use this endpoint when you need real-time order book microstructure data — specifically spread, depth, and imbalance — for perpetual futures on OKX, particularly to inform momentum or execution timing decisions that require live market context an LLM cannot independently compute.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:09:05.928Z","isFirstParty":false}