> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polynode.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Klines (OHLCV)

> Candlestick data. `interval` = 1m,5m,15m,30m,1h,4h,6h,12h,1d,1w. `start` is optional (defaults to a sane window).

Candles are `[open_time, open, high, low, close, volume, trade_count]`, oldest first, wrapped as `{"instrument_id", "symbol", "data", "more"}`.

## Query parameters

| Parameter  | Description                                                                   |
| ---------- | ----------------------------------------------------------------------------- |
| `interval` | `1m`, `5m`, `15m`, `30m`, `1h`, `4h`, `6h`, `12h`, `1d`, `1w` (default `1h`)  |
| `start`    | Window start (Unix ms). **Optional** — defaults to `limit` candles ending now |
| `end`      | Window end (Unix ms)                                                          |
| `limit`    | Number of candles (default 100)                                               |

1m and 1h candles stream live on [`perps_klines:<instrument>:<interval>`](/perps/websocket/channels) — the current candle is pushed whenever it changes, and a candle is final once one with a later `open_time` arrives.


## OpenAPI

````yaml GET /v3/perps/klines/{instrument}
openapi: 3.1.0
info:
  title: PolyNode API
  description: >-
    Real-time Polymarket data API with decoded mempool settlements, OHLCV
    candles, and full Polygon JSON-RPC proxy.
  contact:
    name: PolyNode
    url: https://polynode.dev
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.polynode.dev
    description: Production
security:
  - api_key: []
paths:
  /v3/perps/klines/{instrument}:
    get:
      tags:
        - Perps
      summary: Klines (OHLCV)
      description: >-
        Candlestick data. `interval` = 1m,5m,15m,30m,1h,4h,6h,12h,1d,1w. `start`
        is optional (defaults to a sane window).
      operationId: perps_klines
      parameters:
        - name: instrument
          in: path
          required: true
          description: Instrument id (e.g. `6`), symbol (`BTC-USD`), or bare asset (`btc`).
          schema:
            type: string
        - name: interval
          in: query
          required: false
          description: Candle interval (default 1h).
          schema:
            type: string
        - name: start
          in: query
          required: false
          description: Window start, Unix ms (optional).
          schema:
            type: integer
        - name: end
          in: query
          required: false
          description: Window end, Unix ms.
          schema:
            type: integer
        - name: limit
          in: query
          required: false
          description: Max rows to return.
          schema:
            type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  - - 1783735200000
                    - '63976'
                    - '64120'
                    - '63960'
                    - '64117'
                    - '2.91545'
                    - 514
                  - - 1783738800000
                    - '64123'
                    - '64123'
                    - '64089'
                    - '64112'
                    - '1.4199599999999999'
                    - 274
                instrument_id: 6
                more: false
                symbol: BTC-USD
components:
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key

````