Skip to main content

Position

Topic:
copyTradePosition

Response Parameters

ParameterTypeComments
symbolstringSymbol
positionIdxstringPosition idx, used to identify positions in different position modes: 1-Buy side of both side mode; 2-Sell side of both side mode
positionValuestringPosition value
riskIdintegerRisk ID
leveragestringIn Isolated Margin mode, the value is set by the user.
isolatedbooleantrue means isolated margin mode; false means cross margin mode
sidestringSide
sizestringPosition qty
unrealisedPnlstringunrealised pnl
liqPricestringLiquidation price
bustPricestringBankruptcy price
entryPricestringAverage entry price
positionMarginstringPosition margin
orderMarginstringPre-occupied order margin
occClosingFeestringPosition closing fee occupied (your opening fee + expected maximum closing fee)
cumRealisedPnlstringAccumulated realised pnl (all-time total)
positionStatusstringPosition status: Normal, Liq, Adl
positionSeqnumberPosition sequence

Request Example

ws.send('{"op": "subscribe", "args": ["copyTradePosition"]}')

Response Example

{
"topic": "copyTradePosition",
"data": [
{
"symbol": "ETHUSDT",
"positionIdx": "2",
"positionValue": "80.05065626",
"riskId": 11,
"leverage": "10.000000",
"isIsolated": true,
"side": "Sell",
"size": "0.040000",
"unrealisedPnl": "1.62665626",
"liqPrice": "2191.350098",
"bustPrice": "2201.350098",
"entryPrice": "2001.26640650",
"positionMargin": "8.00506666",
"orderMargin": "0.00000000",
"occClosingFee": "0.05283240",
"cumRealisedPnl": "0.55284374",
"positionStatus": "Normal",
"positionSeq": 0
}
]
}