Skip to main content

Liquidation

Subscribe to the liquidation stream

Push frequency: real-time

Topic:
liquidation.{symbol} e.g., liquidation.BTCUSDT

Response Parameters

ParameterTypeComments
topicstringTopic name
typestringData type. snapshot
tsnumberThe timestamp (ms) that the system generates the data
dataarrayObject
> updateTimenumberThe updated timestamp (ms)
> symbolstringSymbol name
> sidestringOrder side. Buy,Sell
> sizestringExecuted size
> pricestringBankruptcy price

Subscribe Example

const socket = new WebSocket('wss://stream-testnet.zoomex.com/v3/public/linear');

socket.onopen = function() {
const subscribeMsg = {
"op": "subscribe",
"args": ["liquidation.BTCUSDT"]
};
socket.send(JSON.stringify(subscribeMsg));
};

socket.onmessage = function(event) {
};

socket.onclose = function(event) {
};

Response Example

{
"data": {
"price": "0.03803",
"side": "Buy",
"size": "1637",
"symbol": "GALAUSDT",
"updatedTime": 1673251091822
},
"topic": "liquidation.GALAUSDT",
"ts": 1673251091822,
"type": "snapshot"
}