{
"method": "subscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"interval": "PT5M",
"snapshot": false,
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 5
}
{
"method": "unsubscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"interval": "PT5M",
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 6
}
{
"method": "subscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"tick_type": "mark",
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 9
}
{
"channel": "ohlc",
"type": "snapshot",
"data": [
{
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade",
"begin": "2026-10-28T11:15:00Z",
"end": "2026-10-28T11:20:00Z",
"open": "81295",
"high": "81340",
"low": "81280",
"close": "81324",
"volume": "0.4127",
"vwap": "81311"
}
]
}
{
"channel": "ohlc",
"type": "update",
"data": [
{
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade",
"begin": "2026-10-28T11:20:00Z",
"end": "2026-10-28T11:25:00Z",
"open": "81324",
"high": "81331",
"low": "81309",
"close": "81309",
"volume": "0.0165",
"vwap": "81313"
}
]
}
{
"method": "subscribe",
"req_id": 5,
"success": true,
"result": {
"channel": "ohlc",
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade"
}
}
Market data stream
OHLC
The ohlc channel streams OHLC (open, high, low, close) candles of one interval and tick_type.
The first message is the latest candle, possibly closed. A candle is sent again whenever it changes; a later begin closes the previous one.
{
"method": "subscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"interval": "PT5M",
"snapshot": false,
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 5
}
{
"method": "unsubscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"interval": "PT5M",
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 6
}
{
"method": "subscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"tick_type": "mark",
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 9
}
{
"channel": "ohlc",
"type": "snapshot",
"data": [
{
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade",
"begin": "2026-10-28T11:15:00Z",
"end": "2026-10-28T11:20:00Z",
"open": "81295",
"high": "81340",
"low": "81280",
"close": "81324",
"volume": "0.4127",
"vwap": "81311"
}
]
}
{
"channel": "ohlc",
"type": "update",
"data": [
{
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade",
"begin": "2026-10-28T11:20:00Z",
"end": "2026-10-28T11:25:00Z",
"open": "81324",
"high": "81331",
"low": "81309",
"close": "81309",
"volume": "0.0165",
"vwap": "81313"
}
]
}
{
"method": "subscribe",
"req_id": 5,
"success": true,
"result": {
"channel": "ohlc",
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade"
}
}
{
"method": "subscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"interval": "PT5M",
"snapshot": false,
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 5
}
{
"method": "unsubscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"interval": "PT5M",
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 6
}
{
"method": "subscribe",
"params": {
"channel": "ohlc",
"symbol": [
"PF_XBTUSD"
],
"tick_type": "mark",
"asset_type": "perpetual",
"country": "DE"
},
"req_id": 9
}
{
"channel": "ohlc",
"type": "snapshot",
"data": [
{
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade",
"begin": "2026-10-28T11:15:00Z",
"end": "2026-10-28T11:20:00Z",
"open": "81295",
"high": "81340",
"low": "81280",
"close": "81324",
"volume": "0.4127",
"vwap": "81311"
}
]
}
{
"channel": "ohlc",
"type": "update",
"data": [
{
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade",
"begin": "2026-10-28T11:20:00Z",
"end": "2026-10-28T11:25:00Z",
"open": "81324",
"high": "81331",
"low": "81309",
"close": "81309",
"volume": "0.0165",
"vwap": "81313"
}
]
}
{
"method": "subscribe",
"req_id": 5,
"success": true,
"result": {
"channel": "ohlc",
"symbol": "PF_XBTUSD",
"interval": "PT5M",
"tick_type": "trade"
}
}
Body
application/json
The command you send.
Subscribes to feeds, or unsubscribes from them.
Response
default - application/json
The messages the server sends on this channel.
- Snapshot or update
- Acknowledgment
An OHLC message.