Primary WS Integration
The Primary WS is a dedicated hostname for institutional clients that routes trading traffic explicitly through Bybit's primary availability zone, AWS Tokyo Availability Zone ID apne1-az4. It gives you a simple, predictable way to reach the trading path without relying on automatic route selection, and helps avoid the extra network latency caused by cross-availability-zone traffic.
The Primary WS serves traffic only in apne1-az4. To benefit from it, your trading servers must run in apne1-az4; servers in other zones still incur cross-availability-zone latency. Availability Zone names such as ap-northeast-1a may map to different physical zones in different AWS accounts, so match by Availability Zone ID rather than by name.
The Primary WS is an additional connectivity option, offered alongside MMGW and MMWS. It does not replace the standard endpoints or your existing dedicated hostnames, and connectivity is unchanged for clients that do not use it.
| Connection | Designed for |
|---|---|
| MMGW | Stable HTTP route for order-related REST requests |
| MMWS | Stable WebSocket route for private, trade, public, and SBE streams |
| Primary WS | Low-latency route through the primary availability zone (apne1-az4) |
Supported functions
The Primary WS supports the following functions:
| Function | Scope |
|---|---|
| JSON Order Entry | Websocket Trade |
| SBE Order Entry | SBE Trade |
| Fast Order push / acknowledgement | Fast Order Response |
| Private order push | All topics under private stream |
| Market data | SBE only. See SBE Basic Information |
Functions that are not listed above are not available through the Primary WS.
From 10 December 2026 08:00 UTC, the Primary WS no longer supports subscriptions through the WebSocket public stream (/v5/public/*) and supports only SBE market data. For JSON market data subscriptions through /v5/public/*, use a non-Primary WS. Migrate any affected subscriptions before this time to avoid service disruption.
Use the same authentication, request, and message formats as the standard V5 API. Bybit confirms the hostname and paths enabled for your account when your Primary WS is provisioned.
Availability and failover
The Primary WS is designed for latency optimization, not for automatic multi-availability-zone high availability. If the primary availability zone (apne1-az4) becomes unavailable, Primary WS traffic is not automatically failed over. You are responsible for implementing your own failover strategy and switching to a secondary endpoint, such as the standard endpoint or your MMGW / MMWS hostname.
Before routing production traffic through the Primary WS:
- Keep a secondary endpoint configured, whitelisted, and tested so that you can switch to it without a manual setup step.
- Define how your system detects an outage, for example repeated connection failures, request timeouts, or missed ping/pong responses.
- After switching, re-establish your sessions and subscriptions on the secondary endpoint, and reconcile order state with Get Open & Closed Orders before you resume quoting.
Primary WS Eligibility Requirements
Clients at Pro 3 or above can apply for access. We review eligibility quarterly and revoke access if a client's tier falls below Pro 3.
Access setup
The Primary WS is available to eligible institutional clients. To apply, contact your Bybit Relationship Manager (RM).
The Primary WS uses your existing IP / CIDR whitelist.
After approval, Bybit will provide a dedicated Primary WS hostname for your account.
Integration steps
- Apply for the Primary WS through your RM.
- Confirm that the source IP addresses or CIDR ranges you will connect from are whitelisted.
- For the supported trading functions, replace the hostname you currently use with the Primary WS hostname provided by Bybit. Keep the same paths.
- Keep the same request signing, authentication, ping/pong, reconnect, and error handling logic used by the standard V5 API.
- Configure and test failover to your secondary endpoint.
- Monitor your connection usage with Get Institution Connection Limit. The Primary WS hostname is returned in
endpointDomaintogether with your other dedicated hostnames.