Skip to main content
GET
Get candles v2

Path Parameters

symbol
string
required

Trading symbol

Query Parameters

cursor
string

Opaque pagination cursor from a previous candles_v2 response. When present, only enableCache may also be sent.

timeframe
string

Timeframe. Required unless cursor is provided.

from
integer<int64>

Exact inclusive lower bound on returned bar timestamps, in milliseconds since Unix epoch. Required unless cursor is provided.

to
integer<int64>

Exact exclusive upper bound on returned bar timestamps, in milliseconds since Unix epoch. Required unless cursor is provided.

limit
integer<int64>

Maximum bars returned in this page (max 10000)

includePartial
boolean

Whether to include the current open bucket when available (default: true)

enableCache
boolean

Whether to read from and hydrate the candles_v2 Redis cache (default: true)

Response

Canonical asset candles

Canonical candles v2 history response.

bars
object[]
required
from
integer<int64>
required

Echoed exact inclusive lower bound in milliseconds since Unix epoch.

page
object
required
symbol
string
required
timeframe
enum<string>
required

Timeframe enumeration for candlestick data aggregation

Available options:
1s,
5s,
1m,
5m,
15m,
30m,
1h,
4h,
1d
to
integer<int64>
required

Echoed exact exclusive upper bound in milliseconds since Unix epoch.

cacheStatus
enum<string> | null

Cache source status, included only when cache reporting is requested.

Available options:
hit,
miss,
mixed,
disabled