Liquidation
Subscribe to the liquidation stream
Push frequency: real-time
Topic:
liquidation.{symbol}
e.g., liquidation.BTCUSDT
Response Parameters
Parameter | Type | Comments |
---|---|---|
topic | string | Topic name |
type | string | Data type. snapshot |
ts | number | The timestamp (ms) that the system generates the data |
data | array | Object |
> updateTime | number | The updated timestamp (ms) |
> symbol | string | Symbol name |
> side | string | Order side. Buy ,Sell |
> size | string | Executed size |
> price | string | Bankruptcy 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"
}