Skip to main content
/v1/ws requires a user JWT session that the API gateway validates before upgrading the connection. There is no API key path on this endpoint.
Firm API keys (tdr_live_…) are denied on /v1/ws. Prop firms monitoring traders should use /v1/firm-ws, which supports both firm API keys and staff JWT sessions.

Modes

The gateway resolves the session, injects X-User-ID upstream, and forwards the upgrade to ws-server. Clients never send X-User-ID themselves.

Subprotocol example (browser WebSocket)

Most browser WebSocket constructors do not let you set arbitrary headers. Use the subprotocol form instead:

Header example (Node, server-side)

What you can reach

Once upgraded, you receive every event scoped to your user across all accounts you own. There is no scope.set, no X-Firm-ID, and no per-account subscription — see Overview.

What fails