Skip to main content

Change position

subscribe
{
"method": "SUBSCRIBE/UNSUBSCRIBE",
"params": [
"{position}@{listenKey}",
],
"id": "{id}"
}
Response
{
"topic": "position",
"event": "position@123456",
"data": {
"symbol":"btc_usdt",
"contractType": "PERPUTUAL", //PERPUTUAL,DELIVERY
"positionType": "ISOLATED", // "ISOLATED", "CROSSED"
"positionSide": "LONG",
"positionSize":"123", // Position quantity
"closeOrderSize": "100", // Pending order quantity (Cont)
"availableCloseSize": "23", // Available quantity (Cont)
"realizedProfit": "123", // Realized profit and loss
"entryPrice":"213", // Open position average price
"isolatedMargin":"213", // Isolated Margin
"openOrderMarginFrozen": "123", // Occupied open position margin
"underlyingType": "",// COIN_BASED, U_BASED
"leverage":20 // Leverage
}
}