Connect to
wss://api.whitebit.com/ws — see WebSocket Overview for protocol details and keepalive requirements.Rate limits
Query recent trades (one-time)
Fetch recent trades for a market without subscribing. Request ResponseSubscribe to trades
Subscribe to all markets:Update frequency
Updates are pushed in real time on each trade execution.Unsubscribe
Sendtrades_unsubscribe with an empty params array to stop receiving trade updates on the connection.
Error codes
RPI orders in trade updates
Trade updates can include executions originating from RPI orders:rpi: true— the trade involved a Retail Price Improvement (RPI) orderrpi: falseor absent — regular trade
Public market data feeds do not expose RPI orders as visible liquidity in
depth or bookTicker. RPI orders remain visible only in private active orders and in the exchange UI order book (web and mobile).