Timeseries data
GET /v1/exchangerate/:asset_id_base/:asset_id_quote/history
Get the historical exchange rates between two assets in the form of the timeseries.
Path Parameters
- asset_id_base string required
Requested exchange rates base asset identifier (from the Metadata -> Assets)
- asset_id_quote string required
Requested exchange rates base asset identifier (from the Metadata -> Assets)
Query Parameters
- period_id string
Identifier of requested timeseries period (required, e.g.
5SEC
or1HRS
) - time_start string
Timeseries starting time in ISO 8601 (required)
- time_end string
Timeseries ending time in ISO 8601 (required)
- 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 [
- time_period_start date-time
Gets or sets the start time of the period.
- time_period_end date-time
Gets or sets the end time of the period.
- time_open date-time nullable
Gets or sets the opening time of the period.
- time_close date-time nullable
Gets or sets the closing time of the period.
- rate_open double nullable
Gets or sets the opening rate for the period.
- rate_high double nullable
Gets or sets the highest rate for the period.
- rate_low double nullable
Gets or sets the lowest rate for the period.
- rate_close double nullable
Gets or sets the closing rate for the period.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.805Z",
"time_period_end": "2024-04-24T17:11:55.805Z",
"time_open": "2024-04-24T17:11:55.805Z",
"time_close": "2024-04-24T17:11:55.805Z",
"rate_open": 0,
"rate_high": 0,
"rate_low": 0,
"rate_close": 0
}
]
[
{
"time_period_start": "2016-01-01T00:00:00.0000000Z",
"time_period_end": "0001-01-01T00:00:00.0000000Z",
"time_open": "2016-01-01T00:00:00.0000000Z",
"time_close": "2016-01-01T00:00:00.0000000Z",
"rate_open": 430.586617904731,
"rate_high": 430.586617904731,
"rate_low": 430.586617904731,
"rate_close": 430.586617904731
},
{
"time_period_start": "2016-01-01T00:01:00.0000000Z",
"time_period_end": "2016-01-01T00:02:00.0000000Z",
"time_open": "2016-01-01T00:01:00.0000000Z",
"time_close": "2016-01-01T00:01:00.0000000Z",
"rate_open": 430.38999999999993,
"rate_high": 430.38999999999993,
"rate_low": 430.38999999999993,
"rate_close": 430.38999999999993
},
{
"time_period_start": "2016-01-01T00:02:00.0000000Z",
"time_period_end": "2016-01-01T00:03:00.0000000Z",
"time_open": "2016-01-01T00:02:00.0000000Z",
"time_close": "2016-01-01T00:02:00.0000000Z",
"rate_open": 430.6522189770523,
"rate_high": 430.6522189770523,
"rate_low": 430.6522189770523,
"rate_close": 430.6522189770523
}
]
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- time_period_start date-time
Gets or sets the start time of the period.
- time_period_end date-time
Gets or sets the end time of the period.
- time_open date-time nullable
Gets or sets the opening time of the period.
- time_close date-time nullable
Gets or sets the closing time of the period.
- rate_open double nullable
Gets or sets the opening rate for the period.
- rate_high double nullable
Gets or sets the highest rate for the period.
- rate_low double nullable
Gets or sets the lowest rate for the period.
- rate_close double nullable
Gets or sets the closing rate for the period.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.805Z",
"time_period_end": "2024-04-24T17:11:55.805Z",
"time_open": "2024-04-24T17:11:55.805Z",
"time_close": "2024-04-24T17:11:55.805Z",
"rate_open": 0,
"rate_high": 0,
"rate_low": 0,
"rate_close": 0
}
]
[
{
"time_period_start": "2016-01-01T00:00:00.0000000Z",
"time_period_end": "0001-01-01T00:00:00.0000000Z",
"time_open": "2016-01-01T00:00:00.0000000Z",
"time_close": "2016-01-01T00:00:00.0000000Z",
"rate_open": 430.586617904731,
"rate_high": 430.586617904731,
"rate_low": 430.586617904731,
"rate_close": 430.586617904731
},
{
"time_period_start": "2016-01-01T00:01:00.0000000Z",
"time_period_end": "2016-01-01T00:02:00.0000000Z",
"time_open": "2016-01-01T00:01:00.0000000Z",
"time_close": "2016-01-01T00:01:00.0000000Z",
"rate_open": 430.38999999999993,
"rate_high": 430.38999999999993,
"rate_low": 430.38999999999993,
"rate_close": 430.38999999999993
},
{
"time_period_start": "2016-01-01T00:02:00.0000000Z",
"time_period_end": "2016-01-01T00:03:00.0000000Z",
"time_open": "2016-01-01T00:02:00.0000000Z",
"time_close": "2016-01-01T00:02:00.0000000Z",
"rate_open": 430.6522189770523,
"rate_high": 430.6522189770523,
"rate_low": 430.6522189770523,
"rate_close": 430.6522189770523
}
]
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- time_period_start date-time
Gets or sets the start time of the period.
- time_period_end date-time
Gets or sets the end time of the period.
- time_open date-time nullable
Gets or sets the opening time of the period.
- time_close date-time nullable
Gets or sets the closing time of the period.
- rate_open double nullable
Gets or sets the opening rate for the period.
- rate_high double nullable
Gets or sets the highest rate for the period.
- rate_low double nullable
Gets or sets the lowest rate for the period.
- rate_close double nullable
Gets or sets the closing rate for the period.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.806Z",
"time_period_end": "2024-04-24T17:11:55.806Z",
"time_open": "2024-04-24T17:11:55.806Z",
"time_close": "2024-04-24T17:11:55.806Z",
"rate_open": 0,
"rate_high": 0,
"rate_low": 0,
"rate_close": 0
}
]
[
{
"time_period_start": "2016-01-01T00:00:00.0000000Z",
"time_period_end": "0001-01-01T00:00:00.0000000Z",
"time_open": "2016-01-01T00:00:00.0000000Z",
"time_close": "2016-01-01T00:00:00.0000000Z",
"rate_open": 430.586617904731,
"rate_high": 430.586617904731,
"rate_low": 430.586617904731,
"rate_close": 430.586617904731
},
{
"time_period_start": "2016-01-01T00:01:00.0000000Z",
"time_period_end": "2016-01-01T00:02:00.0000000Z",
"time_open": "2016-01-01T00:01:00.0000000Z",
"time_close": "2016-01-01T00:01:00.0000000Z",
"rate_open": 430.38999999999993,
"rate_high": 430.38999999999993,
"rate_low": 430.38999999999993,
"rate_close": 430.38999999999993
},
{
"time_period_start": "2016-01-01T00:02:00.0000000Z",
"time_period_end": "2016-01-01T00:03:00.0000000Z",
"time_open": "2016-01-01T00:02:00.0000000Z",
"time_close": "2016-01-01T00:02:00.0000000Z",
"rate_open": 430.6522189770523,
"rate_high": 430.6522189770523,
"rate_low": 430.6522189770523,
"rate_close": 430.6522189770523
}
]
- Schema
- Example (from schema)
- Example response
Schema
- Array [
- time_period_start date-time
Gets or sets the start time of the period.
- time_period_end date-time
Gets or sets the end time of the period.
- time_open date-time nullable
Gets or sets the opening time of the period.
- time_close date-time nullable
Gets or sets the closing time of the period.
- rate_open double nullable
Gets or sets the opening rate for the period.
- rate_high double nullable
Gets or sets the highest rate for the period.
- rate_low double nullable
Gets or sets the lowest rate for the period.
- rate_close double nullable
Gets or sets the closing rate for the period.
- ]
[
{
"time_period_start": "2024-04-24T17:11:55.806Z",
"time_period_end": "2024-04-24T17:11:55.806Z",
"time_open": "2024-04-24T17:11:55.806Z",
"time_close": "2024-04-24T17:11:55.806Z",
"rate_open": 0,
"rate_high": 0,
"rate_low": 0,
"rate_close": 0
}
]
[
{
"time_period_start": "2016-01-01T00:00:00.0000000Z",
"time_period_end": "0001-01-01T00:00:00.0000000Z",
"time_open": "2016-01-01T00:00:00.0000000Z",
"time_close": "2016-01-01T00:00:00.0000000Z",
"rate_open": 430.586617904731,
"rate_high": 430.586617904731,
"rate_low": 430.586617904731,
"rate_close": 430.586617904731
},
{
"time_period_start": "2016-01-01T00:01:00.0000000Z",
"time_period_end": "2016-01-01T00:02:00.0000000Z",
"time_open": "2016-01-01T00:01:00.0000000Z",
"time_close": "2016-01-01T00:01:00.0000000Z",
"rate_open": 430.38999999999993,
"rate_high": 430.38999999999993,
"rate_low": 430.38999999999993,
"rate_close": 430.38999999999993
},
{
"time_period_start": "2016-01-01T00:02:00.0000000Z",
"time_period_end": "2016-01-01T00:03:00.0000000Z",
"time_open": "2016-01-01T00:02:00.0000000Z",
"time_close": "2016-01-01T00:02:00.0000000Z",
"rate_open": 430.6522189770523,
"rate_high": 430.6522189770523,
"rate_low": 430.6522189770523,
"rate_close": 430.6522189770523
}
]