Position
Topic:
copyTradePosition
Response Parameters
Parameter | Type | Comments |
---|---|---|
symbol | string | Symbol |
positionIdx | string | Position idx, used to identify positions in different position modes: 1-Buy side of both side mode; 2-Sell side of both side mode |
positionValue | string | Position value |
riskId | integer | Risk ID |
leverage | string | In Isolated Margin mode, the value is set by the user. |
isolated | boolean | true means isolated margin mode; false means cross margin mode |
side | string | Side |
size | string | Position qty |
unrealisedPnl | string | unrealised pnl |
liqPrice | string | Liquidation price |
bustPrice | string | Bankruptcy price |
entryPrice | string | Average entry price |
positionMargin | string | Position margin |
orderMargin | string | Pre-occupied order margin |
occClosingFee | string | Position closing fee occupied (your opening fee + expected maximum closing fee) |
cumRealisedPnl | string | Accumulated realised pnl (all-time total) |
positionStatus | string | Position status: Normal , Liq , Adl |
positionSeq | number | Position 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
}
]
}