Historical metrics for the chain
GET/v2/metrics/chain/history
Get chain metrics history.
Request
Query Parameters
metric_id stringrequired
Metric identifier (e.g., TVL
, STABLES_BRIDGED_USD
)
chain_id stringrequired
Chain identifier (e.g., Ethereum
, Arbitrum
)
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 chain 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": 25000000000,
"last_value": 26000000000,
"min_value": 24500000000,
"max_value": 26200000000,
"count_values": 24,
"sum_values": 615000000000
},
{
"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": 26000000000,
"last_value": 25800000000,
"min_value": 25700000000,
"max_value": 26100000000,
"count_values": 24,
"sum_values": 620000000000
}
]
- Schema
- Example (from schema)
- Example chain 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": 25000000000,
"last_value": 26000000000,
"min_value": 24500000000,
"max_value": 26200000000,
"count_values": 24,
"sum_values": 615000000000
},
{
"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": 26000000000,
"last_value": 25800000000,
"min_value": 25700000000,
"max_value": 26100000000,
"count_values": 24,
"sum_values": 620000000000
}
]
- Schema
- Example (from schema)
- Example chain 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": 25000000000,
"last_value": 26000000000,
"min_value": 24500000000,
"max_value": 26200000000,
"count_values": 24,
"sum_values": 615000000000
},
{
"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": 26000000000,
"last_value": 25800000000,
"min_value": 25700000000,
"max_value": 26100000000,
"count_values": 24,
"sum_values": 620000000000
}
]
- Schema
- Example (from schema)
- Example chain 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": 25000000000,
"last_value": 26000000000,
"min_value": 24500000000,
"max_value": 26200000000,
"count_values": 24,
"sum_values": 615000000000
},
{
"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": 26000000000,
"last_value": 25800000000,
"min_value": 25700000000,
"max_value": 26100000000,
"count_values": 24,
"sum_values": 620000000000
}
]
Invalid input, e.g., missing required parameters, invalid chain_id.
Internal server error.
Loading...
Was this section helpful?