Get OHLC Data
GET/public/OHLC
Retrieve OHLC market data.
The last entry in the OHLC array is for the current, not-yet-committed timeframe, and will always be present, regardless of the value of since
.
Returns up to 720 of the most recent entries (older data cannot be retrieved, regardless of the value of since
).
Request
Query Parameters
Asset pair to get data for
Possible values: [1
, 5
, 15
, 30
, 60
, 240
, 1440
, 10080
, 21600
]
Default value: 1
Time frame interval in minutes
Return OHLC entries since the given timestamp (intended for incremental updates)
Responses
- 200
OHLC data retrieved.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- string
- integer
- ]
result object
ID to be used as since when polling for new, committed OHLC data
property name* TickData
Possible values: >= 8
, <= 8
Array of tick data arrays
[int <time>, string <open>, string <high>, string <low>, string <close>, string <vwap>, string <volume>, int <count>]
items object
Possible values: >= 8
, <= 8
string
integer
{
"error": [],
"result": {
"XXBTZUSD": [
[
1688671200,
"30306.1",
"30306.2",
"30305.7",
"30305.7",
"30306.1",
"3.39243896",
23
],
[
1688671260,
"30304.5",
"30304.5",
"30300.0",
"30300.0",
"30300.0",
"4.42996871",
18
],
[
1688671320,
"30300.3",
"30300.4",
"30291.4",
"30291.4",
"30294.7",
"2.13024789",
25
],
[
1688671380,
"30291.8",
"30295.1",
"30291.8",
"30295.0",
"30293.8",
"1.01836275",
9
]
],
"last": 1688672160
}
}