Skip to main content
GET

What is an asset?

An asset is a cross-chain price identity. It groups the tokens that represent the same thing on different chains (for example USDC on Ethereum and USDC on Base) under one numeric id, with one USD price series. You get an asset id from: Not every token is linked to an asset; in that case assetId is null. Use Get token OHLCV or Get market OHLCV for those tokens.

How asset candles differ from pool candles

Asset candles come from periodic samples of the asset’s USD price, not from individual trades:
  • Periods: 1m and longer only. Sub-minute periods (1s to 30s) are rejected with 400.
  • No chain parameter: an asset is not tied to one chain.
  • No fill parameter: it is ignored if sent.
  • Not joined or gap-filled: each candle’s o is the first price sample in that bucket (not the previous candle’s close), and buckets with no samples are missing.
  • Sampling: prices are currently sampled about every 5 minutes, so 1m candles are sparse and short periods may have gaps.
  • Partial oldest bucket: only samples between from and to are used. When from falls inside a bucket, the oldest candle covers only part of that bucket.
  • Volume: v is the asset’s USD volume in the bucket, summed across its tokens on all chains, or 0.

Query parameters

integer
required
Asset id. A positive integer, at most 2147483647.
string
default:"1h"
Candle size. One of 1m, 5m, 15m, 30m, 1h, 4h, 6h, 12h, 1d, 1w, 1M. 1m is one minute and 1M is one calendar month (UTC).
integer
Start of the window, Unix epoch milliseconds. Must be less than or equal to to. Defaults to to − limit × period (a month counts as 31 days).
integer
End of the window, Unix epoch milliseconds. Defaults to now.
integer
default:"500"
Maximum number of candles, from 1 to 2000. If more buckets have data, the most recent limit are returned.
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.
To page back in time, request again with to = first.t - 1, where first is the oldest candle of the current page.

Response

"success"
Always success for a 2xx response.
OhlcvCandle[]
Candles sorted by time, oldest first. Prices are the asset’s USD price. An empty array when there are no samples in the window.

Errors