user.order.{instrument_name}
CHANNELOrder updates for the user. Subscribe with channel ["user.order.{instrument_name}"]. Initial response with same id contains current open orders for the instrument; subsequent messages (id -1) are live updates.wss://stream.crypto.com/exchange/v1/user
user.order.{instrument_name}Private
Request
Body
required
Request id
Possible values: [subscribe]
params objectrequired
e.g. ["user.order.BTCUSD-PERP"]
Current timestamp in milliseconds
Schema
- Array [
- ➖ LIMIT, MARKET
- ➖ STOP_LOSS, STOP_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT: Trigger orders
- ➖ OCO: One-Cancels-the-Other
- ➖ OTO: One-Triggers-the-Other
- ➖ OTOCO: One-Triggers-a-One-Cancels-the-Other
- ➖ SPOT_ATTACH: SpotAttach (TP/SL attached to order for spot instruments)
- ➖ DERIV_ATTACH: DerivAttach (TP/SL attached to order or position for derivative instruments)
- ]
result object
data object[]
Account ID.
Order ID.
Client Order ID.
Possible values: [LIMIT, MARKET, STOP_LOSS, STOP_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT]
Order type:
Possible values: [GOOD_TILL_CANCEL, IMMEDIATE_OR_CANCEL, FILL_OR_KILL]
Time in force
Possible values: [BUY, SELL]
BUY or SELL
Possible values: [POST_ONLY, REDUCE_ONLY, SMART_POST_ONLY, LIQUIDATION, ISOLATED_MARGIN, MARGIN_ORDER]
Execution instructions.
Quantity specified in the order.
Limit price specified in the order.
Order value.
User's maker fee rate.
User's taker fee rate.
Average price.
Cumulative executed quantity.
Cumulative executed value.
Cumulative executed fee.
Possible values: [PENDING, NEW, ACTIVE, FILLED, CANCELED, REJECTED, EXPIRED]
Order status
Updated user.
Order creation date.
E.g. BTCUSD-PERP.
Currency used for the fees.
Order creation timestamp (ms), e.g. "1771761038000".
Order creation timestamp (nanosecond), e.g. "1771761038000000000".
Order update timestamp (ms), e.g. "1771761038000".
Rejection reason code; present for get-order-detail and get-order-history.
isolation_id of the isolated position the order is tied to (derivatives only).
Possible values: [ISOLATED_MARGIN]
ISOLATED_MARGIN when isolation_id > 0 (derivatives only).
OTO/OTOCO/OCO list id; advanced only.
Possible values: [OCO, OTO, OTOCO, SPOT_ATTACH, DERIV_ATTACH]
Contingency type for advanced orders:
Leg id within OTO/OTOCO/OCO; advanced only.
Trigger reference price (trigger legs only).
Possible values: [MARK_PRICE, INDEX_PRICE, LAST_PRICE]
Price source used for ref_price: MARK_PRICE, INDEX_PRICE, or LAST_PRICE (trigger legs only).
The order ID this trigger is attached to (for SpotAttach / DerivAttach attach-to-order orders).
Position this trigger is attached to (DerivAttach attach-to-position): > 0 = isolation_id of the isolated position; 0 = cross-margin position.
Order ID assigned by the exchange (present once the leg has been accepted).
Rejection reason, if the leg was rejected.
Leverage specified on the primary leg (derivatives only, when provided).
Isolated margin amount specified on the primary leg (derivatives only, when provided).