The private stream returns active orders, including orders using Retail Price Improvement (RPI) mode.
Handling modified (replaced) orders
When you modify an order using the Modify Order REST endpoint, the WebSocket stream emits an update with event ID2 (Update order). The updated order object reflects the new price, amount, or activation price, while the id and market remain the same.
If the modified order is fully filled immediately after modification, you receive a single update with event ID 3 (Finish order) instead.
To track modified orders:
- Subscribe to
ordersPending_subscribefor your markets - Listen for updates with event ID
2— these indicate the order was modified - Compare
mtime(modified time) withctime(created time) to confirm the order was modified after creation - Use
client_order_idto correlate the modified order with your internal records