{"uid":"cap_Wf70oVS8QxLF9DbRrzF1c","slug":"chainhilt-polymarket-order-book-6114f7df","name":"ChainHilt Polymarket Order Book","description":"Live order book for each outcome of a prediction market: bids and asks (price, size) per outcome tokenId, read from the venue at `observedAt`. Check depth and spread here before quoting or constructing an order. A closed or untradable market returns 422, which is not charged.","url":"https://chainhilt.ai/api/v1/predict/polymarket/markets/:marketId/book?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"},"pathParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["marketId"],"properties":{"marketId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","description":"Polymarket market id as returned by markets/search, e.g. \"512329\"."}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ybMVF1SUYWLjWIjyEU4S3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current order book (bids and asks) for every outcome of a specified Polymarket prediction market.","exampleAgentPrompt":"Pull the full order book for all outcomes of Polymarket market ID '0xabc123' so I can see the current bids and asks for each outcome.","exampleUseCases":[{"title":"Pre-trade liquidity check","prompt":"Before I place an order, show me the full order book for Polymarket market '0xdef456' — I want to see the depth on both YES and NO outcomes."},{"title":"Arbitrage opportunity scan","prompt":"Fetch the order book for Polymarket market '0x789xyz' so I can compare bid/ask spreads across all outcomes and spot any pricing inefficiencies."},{"title":"Real-time market monitoring","prompt":"Keep an eye on the order book for Polymarket market '0xabc999' and let me know if the best ask on the YES outcome drops below 0.60 USDC."}],"resultDescription":"Returns the order book for each outcome of the specified Polymarket market, including bid and ask levels with prices and quantities, enabling analysis of market depth, liquidity, and spread.","failureModes":["Invalid or malformed marketId returns a 400 or 404 error","Market no longer active or resolved may return empty order book or error","Payment failure (insufficient USDC balance) returns a 402 Payment Required","Rate limiting or network issues may return 5xx errors","MarketId that does not exist on Polymarket returns not found error"],"whenToPreferThis":"Use this endpoint when you need real-time order book data (bids, asks, depth) for all outcomes of a specific Polymarket prediction market. Prefer this over general market search endpoints when you already have a marketId and need granular liquidity data for trading decisions, arbitrage analysis, or pre-trade evaluation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T07:26:21.440Z","isFirstParty":false,"canonicalSlug":"chainhilt-polymarket-order-book-6114f7df"}