Assets
Get asset OHLCV
Get OHLCV candles for a cross-chain asset, built from the asset’s sampled USD price.
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:assetIdin token details, inbase/quoteof market details, and intokenof wallet holdings.idin search results withtype=assets.
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:
1mand longer only. Sub-minute periods (1sto30s) are rejected with400. - No
chainparameter: an asset is not tied to one chain. - No
fillparameter: it is ignored if sent. - Not joined or gap-filled: each candle’s
ois 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
1mcandles are sparse and short periods may have gaps. - Partial oldest bucket: only samples between
fromandtoare used. Whenfromfalls inside a bucket, the oldest candle covers only part of that bucket. - Volume:
vis the asset’s USD volume in the bucket, summed across its tokens on all chains, or0.
Query parameters
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).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).Maximum number of candles, from 1 to 2000. If more buckets have data, the most recent
limit are returned.to = first.t - 1, where first is the oldest candle of the current page.
Response
Candles sorted by time, oldest first. Prices are the asset’s USD price. An empty array when there are no samples in the window.