{
"rid": 2,
"type": "subscribe",
"symbol": "BTCUSD-PERP",
"level": "LEVEL_2"
}{
"rid": 3,
"type": "unsubscribe",
"symbol": "BTCUSD-PERP"
}{
"rid": 4,
"type": "subscribe_candles",
"symbol": "BTCUSD-PERP",
"width": "1m"
}{
"rid": 5,
"type": "unsubscribe_candles",
"symbol": "BTCUSD-PERP",
"width": "1m"
}{
"rid": 2,
"result": {
"subscribed": "BTCUSD-PERP"
}
}{
"rid": 2,
"error": {
"message": "Symbol BTCUSD-PERP is not available",
"code": 404
}
}{
"t": "h",
"ts": 1609459200,
"tn": 123456789
}{
"t": "s",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"p": "50000.00",
"q": 100,
"o": "49500.00",
"l": "49000.00",
"h": "50500.00",
"v": 125000,
"oi": 50000,
"m": "50010.00",
"i": "OPEN",
"pl": "47500.00",
"pu": "52500.00"
}{
"t": "t",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"p": "50000.00",
"q": 100,
"d": "B"
}{
"t": "c",
"symbol": "BTCUSD-PERP",
"ts": 123456789,
"open": "49500.00",
"low": "49000.00",
"high": "50500.00",
"close": "50000.00",
"volume": 5000,
"buy_volume": 3000,
"sell_volume": 2000,
"width": "1m"
}{
"t": "1",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"b": [
{
"p": "49999.50",
"q": 500
}
],
"a": [
{
"p": "50000.50",
"q": 300
}
]
}{
"t": "2",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"b": [
{
"p": "49999.50",
"q": 500
},
{
"p": "49999.00",
"q": 300
},
{
"p": "49998.50",
"q": 200
},
{
"p": "49998.00",
"q": 150
},
{
"p": "49997.50",
"q": 100
}
],
"a": [
{
"p": "50000.50",
"q": 300
},
{
"p": "50001.00",
"q": 400
},
{
"p": "50001.50",
"q": 250
},
{
"p": "50002.00",
"q": 200
},
{
"p": "50002.50",
"q": 150
}
],
"st": true
}{
"t": "3",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"b": [
{
"p": "49999.50",
"q": 500,
"o": [
200,
150,
100,
50
]
},
{
"p": "49999.00",
"q": 300,
"o": [
150,
100,
50
]
},
{
"p": "49998.50",
"q": 200,
"o": [
100,
100
]
}
],
"a": [
{
"p": "50000.50",
"q": 300,
"o": [
150,
100,
50
]
},
{
"p": "50001.00",
"q": 400,
"o": [
200,
150,
50
]
},
{
"p": "50001.50",
"q": 250,
"o": [
150,
100
]
}
],
"st": true
}{
"rid": 2,
"type": "subscribe",
"symbol": "BTCUSD-PERP",
"level": "LEVEL_2"
}{
"rid": 3,
"type": "unsubscribe",
"symbol": "BTCUSD-PERP"
}{
"rid": 4,
"type": "subscribe_candles",
"symbol": "BTCUSD-PERP",
"width": "1m"
}{
"rid": 5,
"type": "unsubscribe_candles",
"symbol": "BTCUSD-PERP",
"width": "1m"
}{
"rid": 2,
"result": {
"subscribed": "BTCUSD-PERP"
}
}{
"rid": 2,
"error": {
"message": "Symbol BTCUSD-PERP is not available",
"code": 404
}
}{
"t": "h",
"ts": 1609459200,
"tn": 123456789
}{
"t": "s",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"p": "50000.00",
"q": 100,
"o": "49500.00",
"l": "49000.00",
"h": "50500.00",
"v": 125000,
"oi": 50000,
"m": "50010.00",
"i": "OPEN",
"pl": "47500.00",
"pu": "52500.00"
}{
"t": "t",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"p": "50000.00",
"q": 100,
"d": "B"
}{
"t": "c",
"symbol": "BTCUSD-PERP",
"ts": 123456789,
"open": "49500.00",
"low": "49000.00",
"high": "50500.00",
"close": "50000.00",
"volume": 5000,
"buy_volume": 3000,
"sell_volume": 2000,
"width": "1m"
}{
"t": "1",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"b": [
{
"p": "49999.50",
"q": 500
}
],
"a": [
{
"p": "50000.50",
"q": 300
}
]
}{
"t": "2",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"b": [
{
"p": "49999.50",
"q": 500
},
{
"p": "49999.00",
"q": 300
},
{
"p": "49998.50",
"q": 200
},
{
"p": "49998.00",
"q": 150
},
{
"p": "49997.50",
"q": 100
}
],
"a": [
{
"p": "50000.50",
"q": 300
},
{
"p": "50001.00",
"q": 400
},
{
"p": "50001.50",
"q": 250
},
{
"p": "50002.00",
"q": 200
},
{
"p": "50002.50",
"q": 150
}
],
"st": true
}{
"t": "3",
"ts": 1609459200,
"tn": 123456789,
"s": "BTCUSD-PERP",
"b": [
{
"p": "49999.50",
"q": 500,
"o": [
200,
150,
100,
50
]
},
{
"p": "49999.00",
"q": 300,
"o": [
150,
100,
50
]
},
{
"p": "49998.50",
"q": 200,
"o": [
100,
100
]
}
],
"a": [
{
"p": "50000.50",
"q": 300,
"o": [
150,
100,
50
]
},
{
"p": "50001.00",
"q": 400,
"o": [
200,
150,
50
]
},
{
"p": "50001.50",
"q": 250,
"o": [
150,
100
]
}
],
"st": true
}Subscribe to market data for a symbol
Unsubscribe from market data for a symbol
Subscribe to candle udpates on a symbol and width
Unsubscribe from candle udpates on a symbol and width
Confirmation of a successful client request
Response indicating a failed client request
Heartbeat/timestamp event (t="h")
Ticker statistics update (t="s")
Trade event (t="t")
Candle update (t="c")
Level 1 orderbook update - best bid/ask (t="1")
Level 2 orderbook update - aggregated price levels (t="2")
Level 3 orderbook update - individual order quantities (t="3")