Isoleted Margin Position Event
Topic:/margin/isolatedPosition:${symbol}
{
"id":1545911660739,
"type":"subscribe",
"topic":"/margin/isolatedPosition:BTC-USDT",
"privateChannel":true
"response":true
}
{
"topic": "/margin/isolatedPosition:BTC-USDT",
"type": "message",
"data": {
"tag": "BTC-USDT",
"status": "CLEAR", // Position status
"accumulatedPrincipal": "9.9778022", // Accumulated principal
"changeAssets": {
"BTC": {
"total": "0.00001", // Total assets
"hold": "0", // Freeze assets
"liabilityPrincipal": "0", // Liability principal
"liabilityInterest": "0" // Debt interest
},
"USDT": {
"total": "9", // Total assets
"hold": "0", // Freeze assets
"liabilityPrincipal": "0", // Liability principal
"liabilityInterest": "0" // Debt interest
}
},
"timestamp": 1714446276318 // Timestamp (milliseconds)
},
"subject": "positionChange",
"channelType": "private"
}
Position status description:
DEBT: Debt
CLEAR: debt-free
IN_BORROW: Borrowing
IN_REPAY: Repayment in progress
IN_LIQUIDATION: Position closing
IN_AUTO_RENEW: Automatically renewing