Skip to main content
GET
Returns open, high, low, close and volume candles for a single pool, oldest first.
  • address must be a pool address or a 32-byte pool id. There is no token fallback: a token address returns 404 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 token0 if it has none). There is no baseToken parameter on this endpoint. Use Get market details to see which token is the base.
  • The period, from, to, limit and fill parameters work exactly as on Get token OHLCV.

Query parameters

string
required
Pool address (0x + 40 hex) or 32-byte pool id (0x + 64 hex). Case-insensitive.
string
required
Chain id, as a number (1) or with the evm: prefix (evm:1). See Chains and identifiers.
string
default:"1h"
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.
integer
Start of the window, Unix epoch milliseconds. Must be less than or equal to to. Defaults to to − limit × period.
integer
End of the window, Unix epoch milliseconds. Defaults to now.
integer
default:"500"
Maximum number of candles, from 1 to 2000.
string
default:"false"
true to insert flat candles for empty buckets between returned candles. Only the exact strings true and false are accepted.
from and to are in milliseconds. A value in seconds is accepted but is read as a date in January 1970. Leave out parameters you don’t use rather than sending them empty: an empty from= or to= is read as 0.

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 volume v. 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:
An empty array means there are no earlier trades in that window. Joined candles. Within each response, every candle’s 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

"success"
Always success for a 2xx response.
OhlcvCandle[]
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.

Errors