Historical metrics for the exchange
GET/v2/metrics/exchange/history
Get exchange metrics history.
Request
Query Parameters
Metric identifier (e.g., TVL
, STABLES_BRIDGED_USD
)
Exchange identifier (e.g., BINANCE
, UNISWAP-V3-ETHEREUM
)
Starting time in ISO 8601
Ending time in ISO 8601
If set, returned values will be in unix timestamp format (valid values: unix_sec, unix_millisec, unix_microsec, unix_nanosec)
Identifier of requested timeseries period (e.g. 1MIN
or 2MTH
), default value is 1MIN
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 external metric response (TVL, FEES, etc.)
- Example generic metric response (TRADES_COUNT, VOLUME, etc.)
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": 1000000,
"last_value": 1050000,
"min_value": 990000,
"max_value": 110000,
"count_values": 24,
"sum_values": 25000000
}
]
[
{
"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",
"value_open": 1000,
"value_high": 1100,
"value_low": 950,
"value_close": 1050,
"value_count": 24,
"value_sum": 25000
}
]
- Schema
- Example (from schema)
- Example external metric response (TVL, FEES, etc.)
- Example generic metric response (TRADES_COUNT, VOLUME, etc.)
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": 1000000,
"last_value": 1050000,
"min_value": 990000,
"max_value": 110000,
"count_values": 24,
"sum_values": 25000000
}
]
[
{
"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",
"value_open": 1000,
"value_high": 1100,
"value_low": 950,
"value_close": 1050,
"value_count": 24,
"value_sum": 25000
}
]
- Schema
- Example (from schema)
- Example external metric response (TVL, FEES, etc.)
- Example generic metric response (TRADES_COUNT, VOLUME, etc.)
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": 1000000,
"last_value": 1050000,
"min_value": 990000,
"max_value": 110000,
"count_values": 24,
"sum_values": 25000000
}
]
[
{
"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",
"value_open": 1000,
"value_high": 1100,
"value_low": 950,
"value_close": 1050,
"value_count": 24,
"value_sum": 25000
}
]
- Schema
- Example (from schema)
- Example external metric response (TVL, FEES, etc.)
- Example generic metric response (TRADES_COUNT, VOLUME, etc.)
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": 1000000,
"last_value": 1050000,
"min_value": 990000,
"max_value": 110000,
"count_values": 24,
"sum_values": 25000000
}
]
[
{
"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",
"value_open": 1000,
"value_high": 1100,
"value_low": 950,
"value_close": 1050,
"value_count": 24,
"value_sum": 25000
}
]
Invalid input, e.g., missing required parameters, invalid exchange_id mapping.
Internal server error.