GET /ws on the API server (same origin as REST, default :8080). The hub
broadcasts the six event types pinned in interface contract §5; slow clients are
dropped rather than allowed to back-pressure the exchange.
Events
Client behavior
The reference client isfrontend/lib/useLiveMarket.ts (ported to
mobile/src/lib/useLiveMarket.ts with an AppState foreground-refetch, since mobile
OSes freeze sockets in the background). Pattern: load a REST snapshot first, then apply
WS events on top; on disconnect, reconnect with backoff and re-snapshot.
Events are broadcast to all connected clients; filtering by market happens client-side.
The exchange core (
backend/internal/exchange) is the single emitter — every order
path (API and MM bot) produces the same events.