Metrics V2
Historical metrics for the asset
Get asset metrics history.
get/v2/metrics/asset/history
Request
- Base URLhttps://rest.coinapi.io
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
metric_idstring required
Metric identifier (e.g., TVL, STABLES_BRIDGED_USD)
asset_idstring required
Asset identifier (e.g., USDC, USDT)
time_startstring date-time
Starting time in ISO 8601
time_endstring date-time
Ending time in ISO 8601
time_formatstring
If set, returned values will be in unix timestamp format (valid values: unix_sec, unix_millisec, unix_microsec, unix_nanosec)
period_idstring
Identifier of requested timeseries period (e.g. 1MIN or 2MTH), default value is 1MIN
limitinteger
Amount of items to return (optional, mininum is 1, maximum is 100000, default value is 100, if the parameter is used then every 100 output items are counted as one request)
Response
successful operation
Models Base Csv Model[] required
Changes
No operation changes recorded.