Historical metrics for the exchange
GET /v1/metrics/exchange/history
Get exchange metrics history.
Query Parameters
- metric_id string required
Metric identifier (from the Metrics -> Listing)
- exchange_id string required
Exchange identifier (from the Metadata -> Exchanges)
- 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.
5SEC
or2MTH
), default value is1SEC
- 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)
- 200
successful operation
- text/plain
- application/json
- text/json
- application/x-msgpack
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- symbol_id string nullable
Gets or sets the symbol id.
- time date-time
Gets or sets the time at which the value is recorded.
- value double
Gets or sets the value of the metric.
- ]
[
{
"symbol_id": "string",
"time": "2024-05-10T11:23:43.917Z",
"value": 0
}
]
[
{
"time_period_start": "2023-07-03T14:29:02.0000000Z",
"time_period_end": "2023-07-03T14:29:03.0000000Z",
"time_open": "2023-07-03T14:29:02.5699837Z",
"time_close": "2023-07-03T14:29:02.5699837Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 30668.476938
},
{
"time_period_start": "2023-07-03T14:29:03.0000000Z",
"time_period_end": "2023-07-03T14:29:04.0000000Z",
"time_open": "2023-07-03T14:29:03.1076159Z",
"time_close": "2023-07-03T14:29:03.1076159Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 0.05485331
},
{
"time_period_start": "2023-07-03T14:29:04.0000000Z",
"time_period_end": "2023-07-03T14:29:05.0000000Z",
"time_open": "2023-07-03T14:29:04.5792149Z",
"time_close": "2023-07-03T14:29:04.9459786Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 7.0257000000000005
}
]
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- symbol_id string nullable
Gets or sets the symbol id.
- time date-time
Gets or sets the time at which the value is recorded.
- value double
Gets or sets the value of the metric.
- ]
[
{
"symbol_id": "string",
"time": "2024-05-10T11:23:43.917Z",
"value": 0
}
]
[
{
"time_period_start": "2023-07-03T14:29:02.0000000Z",
"time_period_end": "2023-07-03T14:29:03.0000000Z",
"time_open": "2023-07-03T14:29:02.5699837Z",
"time_close": "2023-07-03T14:29:02.5699837Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 30668.476938
},
{
"time_period_start": "2023-07-03T14:29:03.0000000Z",
"time_period_end": "2023-07-03T14:29:04.0000000Z",
"time_open": "2023-07-03T14:29:03.1076159Z",
"time_close": "2023-07-03T14:29:03.1076159Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 0.05485331
},
{
"time_period_start": "2023-07-03T14:29:04.0000000Z",
"time_period_end": "2023-07-03T14:29:05.0000000Z",
"time_open": "2023-07-03T14:29:04.5792149Z",
"time_close": "2023-07-03T14:29:04.9459786Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 7.0257000000000005
}
]
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- symbol_id string nullable
Gets or sets the symbol id.
- time date-time
Gets or sets the time at which the value is recorded.
- value double
Gets or sets the value of the metric.
- ]
[
{
"symbol_id": "string",
"time": "2024-05-10T11:23:43.917Z",
"value": 0
}
]
[
{
"time_period_start": "2023-07-03T14:29:02.0000000Z",
"time_period_end": "2023-07-03T14:29:03.0000000Z",
"time_open": "2023-07-03T14:29:02.5699837Z",
"time_close": "2023-07-03T14:29:02.5699837Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 30668.476938
},
{
"time_period_start": "2023-07-03T14:29:03.0000000Z",
"time_period_end": "2023-07-03T14:29:04.0000000Z",
"time_open": "2023-07-03T14:29:03.1076159Z",
"time_close": "2023-07-03T14:29:03.1076159Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 0.05485331
},
{
"time_period_start": "2023-07-03T14:29:04.0000000Z",
"time_period_end": "2023-07-03T14:29:05.0000000Z",
"time_open": "2023-07-03T14:29:04.5792149Z",
"time_close": "2023-07-03T14:29:04.9459786Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 7.0257000000000005
}
]
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- symbol_id string nullable
Gets or sets the symbol id.
- time date-time
Gets or sets the time at which the value is recorded.
- value double
Gets or sets the value of the metric.
- ]
[
{
"symbol_id": "string",
"time": "2024-05-10T11:23:43.918Z",
"value": 0
}
]
[
{
"time_period_start": "2023-07-03T14:29:02.0000000Z",
"time_period_end": "2023-07-03T14:29:03.0000000Z",
"time_open": "2023-07-03T14:29:02.5699837Z",
"time_close": "2023-07-03T14:29:02.5699837Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 30668.476938
},
{
"time_period_start": "2023-07-03T14:29:03.0000000Z",
"time_period_end": "2023-07-03T14:29:04.0000000Z",
"time_open": "2023-07-03T14:29:03.1076159Z",
"time_close": "2023-07-03T14:29:03.1076159Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 0.05485331
},
{
"time_period_start": "2023-07-03T14:29:04.0000000Z",
"time_period_end": "2023-07-03T14:29:05.0000000Z",
"time_open": "2023-07-03T14:29:04.5792149Z",
"time_close": "2023-07-03T14:29:04.9459786Z",
"first": 0,
"last": 0,
"min": 0,
"max": 0,
"count": 0,
"sum": 7.0257000000000005
}
]