---
title: "Get Candles"
method: GET
path: "/v1/perps/candles"
tags: ["Market Data"]
---

# Get Candles

`GET /v1/perps/candles`

Returns OHLCV candlestick data for a perpetual futures market as an array of objects, each with the full field names `startTime`, `open`, `high`, `low`, `close`, and `volume` (values are strings). If you need the TradingView UDF format instead (parallel `o`/`h`/`l`/`c`/`v` arrays of numbers), use `GET /v1/perps/history` (Get Price History).

## Query parameters

- `market` string, required
- `resolution` string, required
- `from` integer, required
- `to` integer, required

## Response `200`

Array of OHLCV candles

- object
  - `success` boolean, required — Whether the request was successful
  - `error` string — Error message, present only on failure
  - `error_code` string — Semantic error code. See each endpoint's error responses for the specific codes it can return.
  - `deprecated` string — Deprecation notice, if applicable
  - `result` ApiCandle[]
    - `startTime` string, date-time, required — Start time of the candle
    - `open` string, required — Opening price
    - `high` string, required — Highest price during the interval
    - `low` string, required — Lowest price during the interval
    - `close` string, required — Closing price
    - `volume` string, required — Trading volume in base currency during the interval

## Other responses

- `400` — Bad request. The request was malformed or failed validation.
- `429` — Rate limit exceeded. Slow down request frequency.
- `500` — Internal server error.

---

[API](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api.md) · [All operations](https://skmtc.net/ondoperps/apis/ondo-perps-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondoperps/ondo-perps-rest-api/revisions/39df6b2fa672/schema)
