order_responses on the authenticated Trade WebSocket. Messages are pushed in real time. Authenticate before subscribing; see the authentication guide for client-language examples.
Subscribe
Example responses
FILLED can describe a partial fill. Reconcile quantities, fills and cancellations rather than assuming one fill event completes the original order. IOC remainders receive the normal final CANCELLED event. FOK does not partially commit fills.
Private-order fields
The optional booleandark identifies a private instruction. true is returned; the default false is omitted, so clients must decode absence as false. The same field appears on get_order_response and entries in all_orders_response.orders. The former separate private-instruction fields are not returned.
Authenticated accounts receive their order responses and fills regardless of public trade publication. See Private-order API.
Automatic reduce-only conversion
During soft liquidation and order margin release, QFEX can convert resting orders to reduce-only without a client request. Subscribers toorder_responses receive one MODIFIED update for each newly converted order. No additional conversion update is sent for orders already reduce-only.
The following example shows the relevant fields; other standard order-response fields are omitted:
The conversion preserves price/time priority. Unlike a client-requested modify, it does not replace the order ID. It also preserves the order’s
dark instruction.
Handling the lifecycle
- Subscribe before relying on live order state. Handle unsolicited updates for your account; do not discard a
MODIFIEDmessage just because it does not match a pending request. - Update your local order’s
reduce_onlyflag and retain the conversion event for diagnostics. Do not assume the flag remains the value sent inadd_order, or that margin recovery resets it tofalse. - Continue processing fills and cancellations. A converted order may fill only up to the position available to reduce at execution time. If it would increase or reverse the position, the unfillable quantity is cancelled with
status: "CANCELLED". This can happen when the order’s price would otherwise match, including after another order or liquidation has reduced or closed the position. Use the earlier conversion update to diagnose the cancellation;CANCELLEDalone does not identify its cause. - If modifying a converted order, send
reduce_only: true. Sending the oldfalsevalue is rejected withCANNOT_MODIFY_NO_SUCH_ORDER; a client modify cannot turn reduce-only off. - After reconnecting, authenticate and resubscribe, then reconcile open orders using Get user orders or Get order. Read the current
reduce_onlyflag from each returned order. Live updates are not a replay of missed events, and these queries exclude filled and fully cancelled orders.
CANCELLED without a fill. The order’s original acknowledgement does not guarantee it remains eligible to execute its original quantity.