Topic: /margin/position#
當持倉狀態發生變化時,系統將推送變更事件;或當存在負債時,系統將定期推送當前債務消息。
Subscribe Message#
{
"id": 1545910660739,
"type": "subscribe",
"topic": "/margin/position",
"response": true,
"privateChannel": "true"
}
Response#
Example
{
"topic": "/margin/position",
"subject": "debt.ratio",
"type": "message",
"userId": "633559791e1cbc0001f319bc",
"channelType": "private"
"data": {
"debtRatio": 0,
"totalAsset": 0.00052431772284080000000,
"marginCoefficientTotalAsset": "0.0005243177228408",
"totalDebt": "0",
"assetList": {
"BTC": {
"total": "0.00002",
"available": "0",
"hold": "0.00002"
},
"USDT": {
"total": "33.68855864",
"available": "15.01916691",
"hold": "18.66939173"
}
},
"debtList": {
"BTC": "0",
"USDT": "0"
},
"timestamp": 1729912435657
}
}
{
"topic": "/margin/position",
"subject": "debt.ratio",
"type": "message",
"userId": "633559791e1cbc0001f319bc",
"channelType": "private"
"data": {
"type": "FROZEN_FL",
"timestamp": 15538460812100
}
}
Modified at 2025-08-28 07:07:39