Skip to main content

User Order

Subscribe / Unsubscribe

Subscribe/Unsubscribe
{
"method": "SUBSCRIBE/UNSUBSCRIBE",
"params": ["{order}@{listenKey}"],
"id": "{id}"
}

Response Example

Response
{
"topic": "order",
"event": "order@123456",
"data": {
"symbol": "btc_usdt", // Trading pair
"orderId": "1234", // Order ID
"origQty": "34244", // Original quantity
"avgPrice": "123", // Average price
"price": "1111", // Order price
"executedQty": "34244", // Executed quantity (Cont)
"orderSide": "BUY", // BUY or SELL
"timeInForce": "IOC", // Valid way
"positionSide": "LONG", // LONG or SHORT
"marginFrozen": "123", // Occupied margin
"sourceType": "default", // DEFAULT: normal order; ENTRUST: plan commission; PROFIT: Take Profit and Stop Loss
"type": "ORDER", // Type
"state": "FILLED", // Order state: NEW, PARTIALLY_FILLED, PARTIALLY_CANCELED, FILLED, CANCELED, REJECTED, EXPIRED
"createdTime": 1731231231, // Create time
"leverage": 20, // Leverage
"positionType": "ISOLATED", // Position type: CROSSED, ISOLATED
"orderType": "MARKET" // Order type: LIMIT, MARKET
}
}