---
title: "Get OHLCV candles"
method: GET
path: "/api/v1/markets/{market_id}/ohlcv"
---

# Get OHLCV candles

`GET /api/v1/markets/{market_id}/ohlcv`

Historical OHLCV candles for a market. Query window capped at 7 days per request.

## Path parameters

- `market_id` string, required

## Query parameters

- `interval` '1m' | '5m' | '15m' | '1h' | '4h' | '1d', required
- `start_timestamp` string, required
- `end_timestamp` string, required
- `limit` integer

## Response `200`

Candles, ascending by time.

- object
  - `items` Candle[], required
    - `market_id` string, required
    - `interval` '1m' | '5m' | '15m' | '1h' | '4h' | '1d', required
    - `open_time` integer, required — Candle start, Unix milliseconds.
    - `close_time` integer, required — Candle end, Unix milliseconds.
    - `open` string, required
    - `high` string, required
    - `low` string, required
    - `close` string, required
    - `volume` string, required — Base-asset volume.
    - `trade_count` integer, required

---

[API](https://skmtc.net/allium/apis/allium-account-api.md) · [All operations](https://skmtc.net/allium/apis/allium-account-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/allium/allium-account-api/versions/6c79c032c85d/schema)
