---
title: "Kline / Candlestick Data"
method: GET
path: "/v2/klines"
tags: ["Klines"]
---

# Kline / Candlestick Data

`GET /v2/klines`

Returns candlestick (OHLCV) bars for a symbol.

Data is assembled from a cold store (PostgreSQL) and a hot store (Redis).
Missing candles between data points are gap-filled with the previous close price and zero volume.

### Price types

| `priceType` | Description |
|-------------|-------------|
| `last`      | Last traded price (default). |
| `mark`      | Mark price — volume is overlaid from `last` klines. |
| `index`     | Index price — volume is overlaid from `last` klines. |

### Response format

Each element is a JSON array (Binance-compatible):

| Index | Field           | Type   |
|-------|-----------------|--------|
| 0     | openTime        | int64  |
| 1     | open            | string |
| 2     | high            | string |
| 3     | low             | string |
| 4     | close           | string |
| 5     | volume          | string |
| 6     | closeTime       | int64  |
| 7     | quoteVolume     | string |
| 8     | trades          | int64  |
| 9     | takerBuyBase    | string |
| 10    | takerBuyQuote   | string |
| 11    | (unused)        | string |

### Caching

Responses are cached server-side for **5 seconds** (short-TTL).
The `X-Cache` response header indicates `HIT` or `MISS`.

## Query parameters

- `symbol` string, required
- `interval` '1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M', required
- `startTime` integer
- `endTime` integer
- `limit` integer
- `priceType` 'last' | 'mark' | 'index'

## Response `200`

Array of kline bars

- array[] — Each element is a 12-element array: [openTime, open, high, low, close, volume, closeTime, quoteVolume, trades, takerBuyBase, takerBuyQuote, "0"].
  - unknown[]
    - unknown

## Other responses

- `400` — Missing or invalid parameter

---

[API](https://skmtc.net/strikefinance/apis/strike-finance-staking-api.md) · [All operations](https://skmtc.net/strikefinance/apis/strike-finance-staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/strikefinance/strike-finance-staking-api/revisions/6b7d8bd51050/schema)
