Skip to main content
GET
Get candles
string
required
Lowercase 20-byte market contract address.
string
required
One of 1s, 1m, 5m, 1h, 6h, or 1d. Each interval maps directly to a materialized continuous aggregate.
integer
required
Inclusive lower bound on the candle’s start timestamp, in Unix seconds.
integer
Inclusive upper bound on the candle’s start timestamp, in Unix seconds. When omitted, the upper bound is the current time.
integer
default:"5000"
Return up to the latest N candles within the requested range. Accepts 1 to 5000. Results are returned oldest-first. The query does not search before from to satisfy the count, so fewer than N candles may be returned.
integer
Backward-compatible alias for countback, with the same range and behavior. Providing both limit and countback returns 400 Bad Request.
When neither countback nor limit is supplied, the latest 5000 candles at most within the requested range are returned, ordered oldest-first. Responses never exceed 5000 candles. Empty, zero, negative, non-integer, or greater-than-5000 count values are rejected. from must be less than or equal to an explicit to. For example, if a range contains ten one-minute candles from 10:00 through 10:09, countback=3 returns 10:07, 10:08, and 10:09. Omitting both count parameters returns all ten candles. Range bounds apply to bucket start times: for hourly candles, a from at 10:15 excludes the 10:00 candle, while a to at 11:00 includes the 11:00 candle. The response is columnar. Values at the same array index belong to one candle: t is Unix time in seconds, o/h/l/c are price integer strings in market pp, and v remains x18 quote volume. Missing intervals carry forward the preceding aggregate close: open, high, low and close all equal that price, and volume is zero. The preceding price may be before from; returned timestamps never are. If no earlier price is known, leading empty buckets are omitted. A market with no candles returns empty arrays. Synthetic candles count toward countback and limit; future buckets are never generated, even if to is in the future. Boundaries are UTC-aligned. Actual candles retain their original OHLCV. This is query-time filling and does not change the continuous aggregates or repair missed refreshes. feedEpoch and marketSeq report the materialization epoch and the market’s sequence progress, read alongside the candles and cached with the response. Either may be null when the corresponding progress is unavailable. Candle aggregates can lag this progress while refreshing; these fields do not guarantee that all trades through marketSeq are included in the candle arrays. Historical range filters do not change this progress metadata.

Path Parameters

marketAddress
string
required
Example:

"0x8121ee960066e4344a213f9ac7502395502aee7a"

Query Parameters

interval
string
from
integer
to
integer
countback
integer
limit
integer

Response

200

Candles