- Date
- Views
- 0
- Time
- 5 min..
WebSocket Trading Coming to WhiteBIT on August 19: A More Direct Way to Manage Orders

In algorithmic trading, speed isn’t only about how quickly a strategy analyzes the market. The time between generating a trading signal and submitting an instruction to place or cancel an order matters just as much.
The fewer intermediate steps a trading system requires, the faster it can respond to changes in price, liquidity, and the order book. That is why WhiteBIT is introducing WebSocket Trading, which allows users to manage orders directly through a WebSocket connection without sending a separate HTTP request for every trading action.
A single persistent connection can now support both market data delivery and order management. This shortens the path from signal generation to order submission and helps simplify the architecture of automated trading systems.
What is WebSocket Trading
WebSocket is a technology that maintains a persistent two-way connection between a user’s trading system and the platform. This allows data to flow continuously without creating a new connection for every request.
In trading, WebSocket is commonly used to receive live market updates, including changes to the order book, newly executed trades, and other market events.
WebSocket Trading extends this functionality. In addition to receiving market data, users can now submit instructions to place and cancel orders through the same WebSocket connection.
How WebSocket Trading changes order management
In a traditional API integration, a trading system may receive market data through WebSocket while relying on the REST API to place or cancel orders. This creates a multi-step process:
- The trading system receives market updates through WebSocket.
- The algorithm analyzes the data and makes a trading decision.
- The system creates a separate REST API request.
- The request is submitted to place or cancel an order.
Even when the HTTP connection is reused, each trading action still requires a separate request-response cycle.
With WebSocket Trading, the workflow becomes more direct:
- The trading system receives market updates.
- The algorithm analyses the data and makes a trading decision.
- The resulting instruction is sent through the same WebSocket connection.
This reduces the number of intermediate steps and can lower the delay between an algorithmic decision and the submission of an order-management instruction.
Who is WebSocket Trading built for
WebSocket Trading is particularly useful for users who rely on automated trading systems:
- Algorithmic traders;
- Trading bot developers;
- Market makers;
- Teams building automated trading systems;
- Traders using strategies that require frequent order updates;
- Users operating latency-sensitive trading systems.
The practical benefit of WebSocket Trading depends on the strategy.
For algorithms that place only a few orders per day, the difference between REST API and WebSocket order management may be limited. It becomes more significant for systems that frequently update quotes, cancel stale orders, or react to short-term market changes, where every additional step can affect response time.
WebSocket Trading in practice
Consider a trading system that places buy and sell orders simultaneously. When the price or other market conditions change, the system checks whether its active orders are still relevant. If they are no longer aligned with the strategy, it cancels them and submits new orders with updated parameters.
With WebSocket Trading, the system can:
- Receive order book updates;
- Process the data and calculate updated order parameters;
- Submit an instruction to cancel the existing order;
- Submit an instruction to place a new order;
— all through a single persistent WebSocket connection.
This allows the system to respond more quickly to market changes and reduces the time a stale order may remain active. The same approach can support arbitrage algorithms, automated risk management, and other strategies that frequently adjust orders in response to changing market conditions.
Order submission is not order execution
WebSocket Trading can reduce latency when submitting trading instructions, but it doesn’t guarantee immediate execution or execution at a specific price.
Once an instruction is sent, the platform validates its parameters, accepts or rejects the order, and updates its status as it moves through the execution process.
The outcome depends on the order type and parameters, available liquidity, queue position, and current market conditions. The key benefit of WebSocket Trading is therefore not “zero latency,” but a shorter and more efficient process for placing and canceling orders.
What determines the speed of the trading system
Even with fewer requests, the overall performance of a trading system depends on several factors:
1) Network quality and stability;
2) The location of the user’s server infrastructure;
3) The performance of the trading system;
4) The time required to process market data and generate a decision;
5) Current network and system load;
6) Market liquidity;
7) The order type and parameters.
WebSocket Trading optimizes the part of this process that can be improved at the API integration level: transmitting order-management instructions from the trading system to the platform.
How WebSocket Trading differs from REST API
WebSocket Trading doesn’t fully replace the REST API. REST API may still be used to retrieve initial account data, trading history, or balance information.
WebSocket Trading complements the REST API by providing a more direct way to submit instructions to place and cancel orders.
Detailed methods, parameters, and connection requirements will be available in WhiteBIT’s public API documentation.
The role of market data in WebSocket Trading
Faster order submission is most valuable when a trading system also receives timely and accurate market data. With WebSocket Trading on WhiteBIT, market updates and order-management instructions can be handled through the same persistent connection, reducing the number of intermediate steps between receiving data and responding to it.
For example, when trading on the PERP market, the system may use:
Index Price — an aggregated reference price for the underlying asset;
Mark Price — a calculated reference price used to assess positions and manage risk;
Funding Rate — the rate used to calculate periodic payments between long and short position holders;
PnL — the realized or unrealized profit or loss on a position.
In spot trading, a system may use data such as the latest trade price, the best bid and ask prices in the order book, and trading volume over a given period.
These data points can support different parts of a strategy, including signal generation, order pricing, and risk management. They can also change in real time.
With WebSocket Trading, the trading system can receive market updates and respond through the same persistent connection, without switching to the REST API for each order-management action. This can reduce the time between a change in market conditions and the submission of the corresponding trading instruction.
The value of WebSocket Trading, therefore, lies in combining timely market data with a more direct order-management workflow. The system can process current information and submit instructions to place or cancel orders through the same connection.
WebSocket Trading key benefits
Fewer separate requests. Placing or canceling an order does not require a separate REST API request.
Lower order-management latency. Instructions are sent through an already active WebSocket connection.
A unified interaction flow. Market updates, algorithmic decisions, and trading instructions can be handled within one continuous process.
A simpler trading system architecture. Fewer communication channels can simplify system logic and reduce technical dependencies.
Support for professional trading workflows. The functionality is designed for systems that rely on fast response times and frequent order updates.
As we’ve mentioned before, WebSocket Trading doesn’t guarantee immediate order execution. It reduces the time required to transmit trading instructions, while actual execution depends on factors such as market liquidity, order type, queue position, and current market conditions.
The benefits may also be less noticeable for strategies that place only a small number of orders. WebSocket Trading is most valuable for systems that frequently place, cancel, or update orders
Important information for API users
When building a new integration or updating an existing trading system, refer to the latest methods in WhiteBIT’s public API documentation.
The WebSocket Trading section will include details on supported operations, parameters, authentication, rate limits, and order status handling.
How to get started with WebSocket Trading
WebSocket Trading provides a more direct way to manage orders through the WhiteBIT API. Reducing the number of intermediate steps can simplify event-driven trading workflows and lower latency when placing or canceling orders.
Review the supported methods, technical requirements, and integration examples in the WebSocket Trading section of WhiteBIT’s public API documentation.
This content is provided for informational purposes only and shall not be construed as financial, investment, trading, or any other form of professional advice. Nothing herein constitutes a recommendation or solicitation to engage in any transaction or investment activity.
To Share
Published by





