OHLC Candlesticks

An OHLC (open, high, low, close) subscription receives IntervalsUpdate, which contains the latest candlestick data for each interval period. See REST API OHLC data for a reference on interval periods.

Subscription

Description

markets:68:ohlc

Candlestick updates for a single market

exchanges:4:ohlc

Candlestick updates for a given exchange

instruments:232:ohlc

All candlestick updates for a given instrument

assets:60:ohlc

All candlestick updates for a given asset

Example IntervalsUpdate message
Example IntervalsUpdate message
{
"marketUpdate": {
"market": {
"exchangeId": "4",
"currencyPairId": "180",
"marketId": "87"
},
"intervalsUpdate": {
"intervals": [
{
"closetime": "1571335560",
"period": 60,
"ohlc": {
"openStr": "8085.8",
"highStr": "8086.4",
"lowStr": "8084",
"closeStr": "8084"
},
"volumeBaseStr": "3.43017075",
"volumeQuoteStr": "27736.065158876"
},
{
"closetime": "1571335560",
"period": 180,
"ohlc": {
"openStr": "8082.7",
"highStr": "8086.4",
"lowStr": "8082.7",
"closeStr": "8084"
},
"volumeBaseStr": "4.18350695",
"volumeQuoteStr": "33825.458000536"
}
]
}
}
}