Historical metrics for the asset
GET/v2/metrics/asset/history
Get asset metrics history.
Request
Query Parameters
metric_id stringrequired
Metric identifier (e.g., TVL
, STABLES_BRIDGED_USD
)
asset_id stringrequired
Asset identifier (e.g., USDC
, USDT
)
time_start date-time
Starting time in ISO 8601
time_end date-time
Ending time in ISO 8601
time_format string
If set, returned values will be in unix timestamp format (valid values: unix_sec, unix_millisec, unix_microsec, unix_nanosec)
period_id string
Identifier of requested timeseries period (e.g. 1MIN
or 2MTH
), default value is 1MIN
limit int32
Default value: 100
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)
Responses
- 200
- 400
- 500
successful operation
- text/plain
- application/json
- text/json
- application/x-msgpack
- Schema
- Example (from schema)
- Example asset metrics response
Schema
Array [
]
[
{}
]
[
{
"time_period_start": "2023-07-03T00:00:00.0000000Z",
"time_period_end": "2023-07-04T00:00:00.0000000Z",
"time_open": "2023-07-03T00:00:00.0000000Z",
"time_close": "2023-07-03T23:59:59.9990000Z",
"first_value": 15000000000,
"last_value": 15500000000,
"min_value": 14800000000,
"max_value": 15600000000,
"count_values": 24,
"sum_values": 370000000000
},
{
"time_period_start": "2023-07-04T00:00:00.0000000Z",
"time_period_end": "2023-07-05T00:00:00.0000000Z",
"time_open": "2023-07-04T00:00:00.0000000Z",
"time_close": "2023-07-04T23:59:59.9990000Z",
"first_value": 15500000000,
"last_value": 15300000000,
"min_value": 15200000000,
"max_value": 15700000000,
"count_values": 24,
"sum_values": 372000000000
}
]
- Schema
- Example (from schema)
- Example asset metrics response
Schema
Array [
]
[
{}
]
[
{
"time_period_start": "2023-07-03T00:00:00.0000000Z",
"time_period_end": "2023-07-04T00:00:00.0000000Z",
"time_open": "2023-07-03T00:00:00.0000000Z",
"time_close": "2023-07-03T23:59:59.9990000Z",
"first_value": 15000000000,
"last_value": 15500000000,
"min_value": 14800000000,
"max_value": 15600000000,
"count_values": 24,
"sum_values": 370000000000
},
{
"time_period_start": "2023-07-04T00:00:00.0000000Z",
"time_period_end": "2023-07-05T00:00:00.0000000Z",
"time_open": "2023-07-04T00:00:00.0000000Z",
"time_close": "2023-07-04T23:59:59.9990000Z",
"first_value": 15500000000,
"last_value": 15300000000,
"min_value": 15200000000,
"max_value": 15700000000,
"count_values": 24,
"sum_values": 372000000000
}
]
- Schema
- Example (from schema)
- Example asset metrics response
Schema
Array [
]
[
{}
]
[
{
"time_period_start": "2023-07-03T00:00:00.0000000Z",
"time_period_end": "2023-07-04T00:00:00.0000000Z",
"time_open": "2023-07-03T00:00:00.0000000Z",
"time_close": "2023-07-03T23:59:59.9990000Z",
"first_value": 15000000000,
"last_value": 15500000000,
"min_value": 14800000000,
"max_value": 15600000000,
"count_values": 24,
"sum_values": 370000000000
},
{
"time_period_start": "2023-07-04T00:00:00.0000000Z",
"time_period_end": "2023-07-05T00:00:00.0000000Z",
"time_open": "2023-07-04T00:00:00.0000000Z",
"time_close": "2023-07-04T23:59:59.9990000Z",
"first_value": 15500000000,
"last_value": 15300000000,
"min_value": 15200000000,
"max_value": 15700000000,
"count_values": 24,
"sum_values": 372000000000
}
]
- Schema
- Example (from schema)
- Example asset metrics response
Schema
Array [
]
[
{}
]
[
{
"time_period_start": "2023-07-03T00:00:00.0000000Z",
"time_period_end": "2023-07-04T00:00:00.0000000Z",
"time_open": "2023-07-03T00:00:00.0000000Z",
"time_close": "2023-07-03T23:59:59.9990000Z",
"first_value": 15000000000,
"last_value": 15500000000,
"min_value": 14800000000,
"max_value": 15600000000,
"count_values": 24,
"sum_values": 370000000000
},
{
"time_period_start": "2023-07-04T00:00:00.0000000Z",
"time_period_end": "2023-07-05T00:00:00.0000000Z",
"time_open": "2023-07-04T00:00:00.0000000Z",
"time_close": "2023-07-04T23:59:59.9990000Z",
"first_value": 15500000000,
"last_value": 15300000000,
"min_value": 15200000000,
"max_value": 15700000000,
"count_values": 24,
"sum_values": 372000000000
}
]
Invalid input, e.g., missing required parameters, invalid asset_id.
Internal server error.
Loading...
Was this section helpful?