Skip to main content

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

ParameterTypeComments
topicstringTopic name
typestringData type. snapshot
tsnumberThe timestamp (ms) that the system generates the data
dataObject
> TnumberThe updated timestamp (ms)
> sstringSymbol name
> SstringPosition side. Buy,Sell. When you receive a Buy update, this means that a long position has been liquidated
> vstringExecuted size
> pstringBankruptcy 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"
}
]
}