{"uid":"cap_U6OVALhv0FxXnxNloIGKq","slug":"polymarket-klines-ohlcv-candlestick-data-mito-trade-bb8d44d4","name":"Polymarket Klines (OHLCV Candlestick Data) — mito.trade","description":"Polymarket prediction-market data API (x402 paid): wallet positions, trades, holders, market trades, klines, and markets. USDC on Polygon, Base, or Arbitrum.","url":"https://data.mito.trade/x402/v1/klines","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":["token_id","resolution"],"properties":{"limit":{"type":"string","description":"Max candles (default 500, max 1500)"},"endTime":{"type":"string","description":"Window end ms"},"interval":{"type":"string","description":"Alias for resolution"},"token_id":{"type":"string","description":"Outcome token id"},"startTime":{"type":"string","description":"Window start ms"},"resolution":{"type":"string","description":"Candle resolution: 5s,1m,5m,15m,1h,4h,1d or 1/5/15/60/240/1440"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"count":{"type":"integer"},"klines":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"block_number":0,"block_timestamp":0},"count":0,"klines":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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__3ugPiKa8TTDenD8Eb7qv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLCV candlestick (kline) price history for a Polymarket outcome token at a specified resolution","exampleAgentPrompt":"Can you pull 1-hour candlestick price data for Polymarket outcome token 12345678 from the past 7 days, up to 500 candles?","exampleUseCases":null,"resultDescription":"Returns a list of OHLCV kline (candlestick) objects for the specified outcome token, each with open/high/low/close/volume data at the requested resolution, plus a count of candles returned, the latest block number, and block timestamp.","failureModes":["Missing required token_id or resolution parameter returns a 400 error","Invalid resolution string (not in allowed enum) returns a 400 or empty result","token_id not found on Polymarket returns an empty klines array","startTime or endTime out of range yields no data","Payment not provided or insufficient USDC triggers x402 payment-required response","limit exceeds 1500 is silently capped or rejected"],"whenToPreferThis":"Use this endpoint when you need historical OHLCV price chart data for a specific Polymarket outcome token at a particular time resolution (5s, 1m, 5m, 15m, 1h, 4h, 1d). Prefer it over trade-level endpoints when you want aggregated candlestick data rather than raw individual trades, and over other prediction market data sources when you need on-chain Polymarket data paid via x402/USDC micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:38:39.222Z","isFirstParty":false}