Skip to main content

Message

Subscribe / Unsubscribe

Subscribe/Unsubscribe
{
"method": "SUBSCRIBE/UNSUBSCRIBE",
"params": ["{notify}@{listenKey}"],
"id": "{id}"
}

Response Example

Response
{
"topic": "notify",
"event": "notify",
"data": {
"symbol": "btc_usdt",
"positionType": "ISOLATED",
"positionSide": "LONG",
"positionSize": "123", // Position quantity
"notifyType": "WARN" // Notification type: WARN (warning, about to be levelled), PARTIAL (partial liquidation), LIQUIDATION (liquidation), ADL (auto-deleveraging)
}
}