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

integer
required
Asset id. A positive integer, at most 2147483647.
string
Fixed resolution. One of 5m, 15m, 1h, 6h, 1d. Leave it out to get a mixed-resolution series (see below).
integer
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).
integer
End of the window, Unix epoch milliseconds. Defaults to now.
There is no limit and no chain parameter.
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.

Resolution and default range

With a period, 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 to to just before the date of the last (oldest) point you received.

Response

"success"
Always success for a 2xx response.
TokenHistoryOutput

Errors