After an order is successfully placed, cancelled, or executed, a push notification will be sent to update the corresponding trading pair's position (including scenarios such as ADL that cause changes in position size).
Push frequency: Real-timeSubscribe Message#
{
"id": "1545910660739",
"action": "SUBSCRIBE",
"channel":"positionAll",
"tradeType": "FUTURES"
}
{
"id": "1545910660739",
"action": "SUBSCRIBE",
"channel":"position",
"tradeType": "FUTURES",
"symbol":"XBTUSDTM"
}
If you are trading in UTA mode, please give 'UNIFIED' for tradeType.Response#
Example{
"T": "positionAll.UNIFIED",
"P": 1764561761505398800,
"d": {
"pi": "10000000000000073",
"s": "XBTUSDTM",
"mM": "CROSS",
"q": "-1",
"eP": "86263.1",
"pV": "-86.2631",
"mP": "86265.4",
"lP": "1000000",
"bP": "1000000",
"l": "1",
"uPL": "-0.0023",
"rPL": "-0.05175786",
"iM": "-86.2631",
"mmr": "0.004",
"mtM": "-0.3450524",
"U": 1764561761496,
"O": 1764561761496
}
}