Skip to main content

Order

Topic:
copyTradeOrder

Response Parameters

ParameterTypeComments
orderIdstringOrder Id
orderLinkIdstringUnique user-set order ID. Maximum length of 36 characters
symbolstringSymbol
orderTypestringConditional order type
pricestringOrder price
qtystringTransaction qty
sidestringSide
positionIdxstringPosition idx, used to identify positions in different position modes: 1-Buy side of both side mode; 2-Sell side of both side mode
cumExecFeestringCumulative trading fees
cumExecValuestringCumulative value of trading
lastExecPricestringLast execution price
cumExecQtystringCumulative qty of trading
takeProfitstringTake profit price
stopLossstringStop loss price
tpTriggerBystringType of take-profit activation price, LastPrice by default.
slTriggerBystringType of stop-loss activation price, LastPrice by default.
createTimenumberCommission time
updateTimenumberUpdate time
copyTradeOrderStatusstringCopy 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"
}
]
}