Skip to main content

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.

info

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.

ConnectionDesigned for
MMGWStable HTTP route for order-related REST requests
MMWSStable WebSocket route for private, trade, public, and SBE streams
Primary WSLow-latency route through the primary availability zone (apne1-az4)

Supported functions​

The Primary WS supports the following functions:

FunctionScope
JSON Order EntryWebsocket Trade
SBE Order EntrySBE Trade
Fast Order push / acknowledgementFast Order Response
Private order pushAll topics under private stream
Market dataSBE only. See SBE Basic Information

Functions that are not listed above are not available through the Primary WS.

JSON market data not supported

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​

Client-managed 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​

  1. Apply for the Primary WS through your RM.
  2. Confirm that the source IP addresses or CIDR ranges you will connect from are whitelisted.
  3. For the supported trading functions, replace the hostname you currently use with the Primary WS hostname provided by Bybit. Keep the same paths.
  4. Keep the same request signing, authentication, ping/pong, reconnect, and error handling logic used by the standard V5 API.
  5. Configure and test failover to your secondary endpoint.
  6. Monitor your connection usage with Get Institution Connection Limit. The Primary WS hostname is returned in endpointDomain together with your other dedicated hostnames.