Use this endpoint to retrieve historical data for an asset.
This endpoint supports partial success - if some of the requested metric, chain, or product IDs are not found, the endpoint will return data for the valid entities and include an errors array with details about the invalid ones.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the asset
Allows you to select one of the assets available.
The full list is available on the assets endpoint (see above).
Metric to include according to asset metric availability.
Allows you to select one of the metrics available for a specific asset.
If no metric_id is selected, the query defaults to asset_price.
List of chains to include according to asset chain availability.
Allows you to select one or more of the chains available for a specific asset. When including multiple chains, separate each one with a comma. Example: ethereum,base.
List of products to include according to asset product availability.
Allows you to select one or more of the products available for a specific asset. When including multiple products, separate each one with a comma. Example: usdc,usdt.
Start date Allows you to select the start date for the query. If no start is selected, the query defaults to launch date or the first date for which there is data available for the chosen metric.
End date
Allows you to select the end date for the query. If no end is selected, the query defaults to the latest date for which there is data available for the chosen metric.
Level of granularity
This feature enables more detailed queries of specific metrics. For instance, you can examine an asset's metrics by individual chain.
However, it's important to note that this level of granularity is not applicable to all metrics.
Timestamp ordering
Allows you to define how the response is sorted. The response is always sorted by timestamp, and by selecting desc the response starts from the most recent entry, and vice versa for asc.
If no order_direction is selected, the response defaults to desc.
asc, desc Time interval for data aggregation.
Intervals are 24h, 7d, 30d, 90d, 180d, 365d, max, ytd, 4fullq, or a number representing days.
24h, 7d, 30d, 90d, 180d, 365d, max, ytd, 4fullq OK