> ## Documentation Index
> Fetch the complete documentation index at: https://whitebit-mintlify-ws-modify-order-1774626156.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders Pending

<Warning>
  This is a private channel. [Authorize](/websocket/authentication) the WebSocket connection before subscribing.
</Warning>

Query or subscribe to active (unexecuted) orders across specified markets. Each update includes order ID, type, side, price, amounts, and execution status. Update interval: real-time.

<Note>
  The private stream returns active orders, including orders using Retail Price Improvement (RPI) mode.
</Note>

## Handling modified (replaced) orders

When you modify an order using the [Modify Order](/api-reference/spot-trading/modify-order) REST endpoint, the WebSocket stream emits an update with event ID `2` (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:

1. Subscribe to `ordersPending_subscribe` for your markets
2. Listen for updates with event ID `2` — these indicate the order was modified
3. Compare `mtime` (modified time) with `ctime` (created time) to confirm the order was modified after creation
4. Use `client_order_id` to correlate the modified order with your internal records
