Tokens
Get token OHLCV
USD OHLCV candles for a token, built from its most active pool, from 1-second to 1-month periods.
GET
Returns open, high, low, close and volume candles for a token, priced in USD. The candles come from the token’s most active pool, so you only need the token address. For a specific pool, use
Empty periods and
GET /market/ohlcv. For a cross-chain series, use GET /asset/ohlcv.
To keep a chart live after loading history, subscribe to the ohlcv WebSocket channel. The live price chart guide shows both steps.
Query parameters
Token contract address:
0x followed by 40 hex characters. Case-insensitive. 32-byte pool IDs are not accepted here.Chain ID, as a number (
8453) or in evm:<id> form (evm:8453). 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 calendar month.Start of the range, in Unix epoch milliseconds. Defaults to
to minus limit candles (limit × period, counting 1M as 31 days). Must not be after to.End of the range, in Unix epoch milliseconds. Defaults to now. The candle that contains
to is included, so with the default you get the current, still-open candle.true to insert flat candles for periods without trades, false to skip them. Only the literal strings true and false are accepted.Response
Candles in ascending time order (oldest first, newest last). An empty array when there were no trades in the range.
How candles are built
Which pool and which price
- Best pool. The API looks at up to 25 of the token’s pools on that chain and uses the one with the highest 24h volume. If the token has no pool, the response is
404. - Your token’s side. Candles are the USD price of the token you requested, whichever side of the pool it is on.
Launchpad tokens: bonding-curve stitching
When the best pool is the DEX pool a launchpad token graduated to, its history starts at graduation. If all of these are true:- the pool records a bonding-curve pool,
- the token is bonded and has a graduation time, and
- the DEX pool returns fewer than
limitcandles,
limit candles in total. The series continues across graduation without you having to query both pools.
Which trades count
- Price (
o,h,l,c) uses only trades worth at least $0.10 with a USD price above 0 and below 1,000,000,000. This keeps dust trades and broken prices out of the chart. - Volume (
v) is the USD volume of all trades in the bucket, including those below $0.10. - A bucket with no priced trade is treated as empty.
Joined candles
Each candle’so is set to the previous candle’s c, and h and l are widened to include that open. The chart has no gaps between consecutive candles. The first candle in the response keeps its own open.
Empty periods and fill
fill=false(default): empty buckets are left out, so consecutive candles may be more than oneperiodapart.fill=true: flat candles (o = h = l = c =previous close,v = 0) are inserted for empty buckets between returned candles. Nothing is added before the first candle or after the last one. Filled candles count towardslimit, and the most recentlimitcandles are kept.
Time range and buckets
- Buckets start on round UTC boundaries for the period.
1wbuckets start on Monday 00:00 UTC.1Mbuckets are calendar months in UTC, so they vary in length. - If more than
limitbuckets fall betweenfromandto, you get the most recentlimitcandles. - Sub-minute periods (
1s,5s,15s,30s) are built from raw swaps, and their look-back is capped atlimit × periodbeforeto, even if you pass an earlierfrom. For example,period=1s&limit=500covers at most the 500 seconds beforeto.
OHLCV candles are returned oldest first.
GET /token/history returns points newest first.