Assets
Get asset price history
Get the USD price history of a cross-chain asset, newest point first.
GET
Returns price points for an asset, identified by its numeric id. An asset is a cross-chain price identity; you get its id from
There is no
assetId in token, market and wallet responses, or from search with type=assets. See What is an asset?.
This endpoint behaves exactly like Get token price history, which looks up the token’s asset and returns this same series. Use this endpoint when you already have the asset id.
Query parameters
Fixed resolution. One of
5m, 15m, 1h, 6h, 1d. Leave it out to get a mixed-resolution series (see below).Start of the window, Unix epoch milliseconds. Must be less than or equal to
to. Defaults to to minus the default range for the chosen period (see below).limit and no chain parameter.
Resolution and default range
With aperiod, each point is the average price over that bucket, and volumeUSD is the volume in the bucket. When from is omitted, the window goes back from to by:
Without a
period, the resolution depends on how old each point is (measured from now, not from to):
Order and the 2000-point cap
- Points are sorted newest first. This is the opposite of the OHLCV endpoints, which return oldest first.
- At most 2000 points are returned. If the window holds more, the newest 2000 are kept and the oldest are dropped.
- To cover a long range at a fine resolution, split it into several requests, or page back by setting
toto just before the date of the last (oldest) point you received.