Skip to main content

User Order

Subscribe / Unsubscribe

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

Response

Response
{
"topic": "order",
"event": "order@123456",
"data": {
"symbol": "btc_usdt", // symbol
"orderId": "1234", // order ID
"origQty": "34244", // original quantity
"avgPrice": "123", // average filled price
"price": "1111", // order price
"executedQty": "34244", // filled quantity (contracts)
"orderSide": "BUY", // BUY (buy) or SELL (sell)
"timeInForce": "IOC", // time in force
"positionSide": "LONG", // LONG (long) or SHORT (short)
"marginFrozen": "123", // frozen margin
"sourceType": "default", // DEFAULT: normal; ENTRUST: conditional; PROFIT: TP/SL
"type": "ORDER", // type
"state": "FILLED", // NEW, PARTIALLY_FILLED, PARTIALLY_CANCELED, FILLED, CANCELED, REJECTED, EXPIRED
"createdTime": 1731231231, // create time (timestamp)
"leverage": 20, // leverage
"positionType": "ISOLATED", // CROSSED (cross), ISOLATED (isolated)
"orderType": "MARKET" // LIMIT (limit), MARKET (market)
}
}