v18

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-1750147643.4 KB
Assets

Get historical prices for assets

get/api/v1/assets/price-history

Query parameters

asset_idsstring nullable

Optional comma-separated list of asset IDs to filter for. If excluded, values will be returned for all assets.

Optional comma-separated list of asset IDs to filter for. If excluded, values will be returned for all assets.

intervalinteger

Interval value

E.g. for interval buckets of 2h: interval=2&period=h

Interval value

E.g. for interval buckets of 2h: interval=2&period=h

'h' required
OR
'd' required
OR
'w' required
OR
'm' required
OR
'y' required

Interval period

Values:

  • h: Hourly
  • d: Daily (accounts for offsets introduced by DST)
  • w: Weekly (provided for convenience, equivalent to 7d)
  • m: Monthly (accounts for varying # of days per month)
  • y: Yearly (accounts for varying # of days per year)

E.g. for interval buckets of 2h interval=2&period=h

startinteger required

Start timestamp for interval range (inclusive)

Must be provided as unix timestamp (in seconds)

Start timestamp for interval range (inclusive)

Must be provided as unix timestamp (in seconds)

endinteger required

End timestamp for interval range (inclusive)

Must be provided as unix timestamp (in seconds)

End timestamp for interval range (inclusive)

Must be provided as unix timestamp (in seconds)

offsetinteger

Time series bucket offset

Time series bucket offset

limitinteger

Maximum number of time buckets/intervals to return.

For responses with multiple series, this limit is applied to each series individually rather than accumulating across series. This is a limit of returned interval sections, it is not a limit of returned points. In other words, limit=200 will provide 200 time points for a single series. For multi-series responses, each series will also see the exact same set of 200 time points.

Maximum number of time buckets/intervals to return.

For responses with multiple series, this limit is applied to each series individually rather than accumulating across series. This is a limit of returned interval sections, it is not a limit of returned points. In other words, limit=200 will provide 200 time points for a single series. For multi-series responses, each series will also see the exact same set of 200 time points.

Response

Success response

{"stackTrail":"components:schemas:AssetPriceHistoryObjResponse:properties:error","oasType":"schema","type":"unknown","description":"Error data. Guaranteed `null` for successful response."}
statusinteger required

HTTP status. Successful responses are guaranteed to be < 400. Conversely, error responses are guaranteed to be >= 400.

status_textstring required

HTTP status text