All Liquidation
Subscribe to the liquidation stream, push all liquidations.
Covers: USDT contract / Inverse contract
Push frequency: 500ms
Topic:
allLiquidation.{symbol} e.g., allLiquidation.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 | Object | |
| > T | number | The updated timestamp (ms) |
| > s | string | Symbol name |
| > S | string | Position side. Buy,Sell. When you receive a Buy update, this means that a long position has been liquidated |
| > v | string | Executed size |
| > p | string | Bankruptcy price |
Subscribe Example
const socket = new WebSocket('wss://stream-testnet.zoomex.com/v5/public/linear');
socket.onopen = function() {
const subscribeMsg = {
"op": "subscribe",
"args": ["allLiquidation.BTCUSDT"]
};
socket.send(JSON.stringify(subscribeMsg));
};
socket.onmessage = function(event) {
};
socket.onclose = function(event) {
};
Message Example
{
"topic": "allLiquidation.BTCUSDT",
"type": "snapshot",
"ts": 1739502303204,
"data": [
{
"T": 1739502302929,
"s": "BTCUSDT",
"S": "Sell",
"v": "20000",
"p": "0.04499"
}
]
}