---
title: "OHLCV candles for a token in a single pool (USD). Ascending by time."
method: GET
path: "/v1/dextrades/{token}/candles"
tags: ["DexTrades"]
---

# OHLCV candles for a token in a single pool (USD). Ascending by time.

`GET /v1/dextrades/{token}/candles`

## Path parameters

- `token` string, required

## Query parameters

- `resolution` integer, required — Candle length in seconds
- `from` integer, required — Unix timestamp in seconds
- `to` integer, required — Unix timestamp in seconds
- `pool` string — Pool contract address; omitted — the primary pool is resolved by the backend

## Response `200`

candles of the pool, ascending by time

- ApiDexCandles
  - `pool` string — Pool the candles were computed for; absent — no pool found for the token
  - `candles` ApiDexCandle[], required
    - `time` integer, required — Unix timestamp (seconds) of the bar start
    - `open` number, double, required
    - `high` number, double, required
    - `low` number, double, required
    - `close` number, double, required
    - `volume` number, double, required — USD volume
    - `trades` integer, required

## Other responses

- `default` — Some error during request processing

---

[API](https://skmtc.net/swap/apis/swap-coffee-api.md) · [All operations](https://skmtc.net/swap/apis/swap-coffee-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swap/swap-coffee-api/revisions/2d1b51b5df52/schema)
