Order
Topic:
copyTradeOrder
Response Parameters
Parameter | Type | Comments |
---|---|---|
orderId | string | Order Id |
orderLinkId | string | Unique user-set order ID. Maximum length of 36 characters |
symbol | string | Symbol |
orderType | string | Conditional order type |
price | string | Order price |
qty | string | Transaction qty |
side | string | Side |
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 |
cumExecFee | string | Cumulative trading fees |
cumExecValue | string | Cumulative value of trading |
lastExecPrice | string | Last execution price |
cumExecQty | string | Cumulative qty of trading |
takeProfit | string | Take profit price |
stopLoss | string | Stop loss price |
tpTriggerBy | string | Type of take-profit activation price, LastPrice by default. |
slTriggerBy | string | Type of stop-loss activation price, LastPrice by default. |
createTime | number | Commission time |
updateTime | number | Update time |
copyTradeOrderStatus | string | Copy trade order status |
Request Example
ws.send('{"op": "subscribe", "args": ["copyTradeOrder"]}')
Response Example
{
"topic": "copyTradeOrder",
"data": [
{
"orderId": "6d667921-3cf4-4efd-b93f-727bd10a3b62",
"orderLinkId": "w11a313223ddd132111",
"symbol": "ETHUSDT",
"orderType": "Market",
"price": "1863.250000",
"qty": "0.010000",
"side": "Sell",
"positionIdx": "2",
"cumExecFee": "0.01175970",
"cumExecValue": "19.59950000",
"lastExecPrice": "1959.949951",
"cumExecQty": "0.010000",
"takeProfit": "1750",
"stopLoss": "2000",
"tpTriggerBy": "LastPrice",
"slTriggerBy": "LastPrice",
"createTime": 1652932133873,
"updateTime": 1652932133892,
"copyTradeOrderStatus": "OpenOrderFilled"
}
]
}