ordersPending_update events in real time on every order state change. Subscribe to multiple markets simultaneously by passing market names in the params array.
Connect to
wss://api.whitebit.com/ws — see WebSocket Overview for protocol details and keepalive requirements.Rate limits
Query pending orders (one-time)
Fetch current pending orders for a market without subscribing to updates. Request ResponseSubscribe to order updates
Events during a disconnection are not replayed. After reconnecting, query current open orders with
ordersPending_request or the REST Query Unexecuted Orders endpoint before re-subscribing. See Reconnection and state recovery.Update frequency
Updates are pushed in real time on every order state change (new, modified, partially filled).Error codes
Order modification behavior
WhenPOST /api/v4/order/modify is called, the matching engine cancels the original order and creates a replacement, producing two sequential events:
event_id=3(Finish) — original order cancelled. Theidin the payload matches the oldorder_id.event_id=1(New) — replacement order created with a neworder_id.
order_id must update the stored value after each modify call. Use client_order_id for stable correlation across modifications.
The private stream returns active orders, including orders using Retail Price Improvement (RPI) mode.
Order object
Fields present in both the query response (records[]) and the pushed ordersPending_update payload.