Skip to main content
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 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

string
required
Token contract address: 0x followed by 40 hex characters. Case-insensitive. 32-byte pool IDs are not accepted here.
string
required
Chain ID, as a number (8453) or in evm:<id> form (evm:8453). 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 calendar month.
integer
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.
integer
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.
integer
default:"500"
Maximum number of candles. Between 1 and 2000.
string
default:"false"
true to insert flat candles for periods without trades, false to skip them. Only the literal strings true and false are accepted.

Response

string
Always "success".
OhlcvCandle[]
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 limit candles,
then candles from the bonding-curve pool (up to the graduation time and before the first DEX candle) are added in front, up to 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’s o 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 one period apart.
  • 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 towards limit, and the most recent limit candles are kept.

Time range and buckets

  • Buckets start on round UTC boundaries for the period. 1w buckets start on Monday 00:00 UTC. 1M buckets are calendar months in UTC, so they vary in length.
  • If more than limit buckets fall between from and to, you get the most recent limit candles.
  • Sub-minute periods (1s, 5s, 15s, 30s) are built from raw swaps, and their look-back is capped at limit × period before to, even if you pass an earlier from. For example, period=1s&limit=500 covers at most the 500 seconds before to.
To load older history, request again with to set to the first candle’s t minus 1.
from and to are milliseconds. A value in seconds is accepted, but it is read as a date in January 1970. A to in seconds returns no candles. A from in seconds silently widens the range back to 1970.
OHLCV candles are returned oldest first. GET /token/history returns points newest first.

Errors