Markets
Get market OHLCV
Get OHLCV candles for one pool, priced as the USD price of the pool’s base token.
GET
Returns open, high, low, close and volume candles for a single pool, oldest first.
An empty array means there are no earlier trades in that window.
Joined candles. Within each response, every candle’s
addressmust be a pool address or a 32-byte pool id. There is no token fallback: a token address returns404 POOL_NOT_FOUND. For candles of a token across its best pool, use Get token OHLCV.- Prices are the USD price of the pool’s base token (the pool’s default base, or
token0if it has none). There is nobaseTokenparameter on this endpoint. Use Get market details to see which token is the base. - The
period,from,to,limitandfillparameters work exactly as on Get token OHLCV.
Query parameters
Chain id, as a number (
1) or with the evm: prefix (evm:1). See Chains and identifiers.Candle size. One of
1s, 5s, 15s, 30s, 1m, 5m, 15m, 30m, 1h, 4h, 6h, 12h, 1d, 1w, 1M. Case matters: 1m is one minute and 1M is one month. See Periods.Start of the window, Unix epoch milliseconds. Must be less than or equal to
to. Defaults to to − limit × period.true to insert flat candles for empty buckets between returned candles. Only the exact strings true and false are accepted.Periods
Candle times are bucket start times in UTC.
How candles are built
Which trades count. Only trades are included; liquidity adds and removals, MEV and bonding events are not. A trade moves the price only if its price is above 0 and below 1,000,000,000 USD and its USD value is at least 0.10. Smaller trades still count toward volumev. A bucket with no priced trade has no candle.
The window and limit. Candles cover every bucket from the one that contains from to the one that contains to, inclusive. The bucket that contains to is included in full, so with the default to (now) the last candle is the current, still-open candle.
If the window holds more than limit candles, the most recent limit are returned. For the sub-minute periods (1s to 30s) the window is also capped at limit × period before to, whatever from says.
Paging back in time. Take the first (oldest) candle of the page and request again with to = first.t - 1, keeping the same period and limit:
o is set to the previous candle’s close c, and h/l are widened to include that open if needed. Candles therefore connect without gaps. The first candle in the response keeps its own open, so it may differ slightly from the close of the last candle of the previous page.
fill=true. Empty buckets between two returned candles are filled with flat candles (o = h = l = c = the previous close, v = 0). Nothing is added before the first candle or after the last one, so a pool with no recent trades does not get filler up to now. Filled candles count toward limit, and the most recent limit candles are kept. Without fill, empty buckets are simply missing.
Response
Candles sorted by time, oldest first. Prices are USD prices of the pool’s base token and
v is the pool’s USD trading volume in the bucket. An empty array when there are no trades in the window.