# Polymarket Klines (OHLCV Candlestick Data) — mito.trade

> Polymarket Klines (OHLCV Candlestick Data) — mito.trade is a paid API for AI agents from data.mito.trade, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns OHLCV candlestick (kline) price history for a Polymarket outcome token at a specified resolution

## Facts

- Endpoint: GET https://data.mito.trade/x402/v1/klines
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-klines-ohlcv-candlestick-data-mito-trade-bb8d44d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U6OVALhv0FxXnxNloIGKq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability polymarket-klines-ohlcv-candlestick-data-mito-trade-bb8d44d4
```

Example prompt: Can you pull 1-hour candlestick price data for Polymarket outcome token 12345678 from the past 7 days, up to 500 candles?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Polymarket prediction-market data API (x402 paid): wallet positions, trades, holders, market trades, klines, and markets. USDC on Polygon, Base, or Arbitrum.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "block_number": 0,
   "block_timestamp": 0
  },
  "count": 0,
  "klines": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-klines-ohlcv-candlestick-data-mito-trade-bb8d44d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.mito.trade](https://www.zero.xyz/host/data.mito.trade/llms.txt)
