|
BetaTrader
A HFT Eco-System
|
The client_auth module is responsible for the overall lifecycle of the user's secure connection, orchestrating both HTTP and FIX channels.
Identity management in trading systems usually spans multiple protocols. You register via HTTP to acquire credentials, then connect via FIX to authenticate a trading session. client_auth bridges these two distinct operations into a single, unified state machine that the user interface can track.
AuthState enum for the UI to bind to.35=A) and UserRequest (35=BE) flows.SenderCompID assigned to the client.| Component | Description |
|---|---|
**AuthCoordinator** | The central manager. It takes references to both ApiClient and FixClientSession at initialization and drives them based on user requests. |
**AuthState** | A robust enum representing the exact step in the connection lifecycle, intended to be polled by ImGui to update loading spinners and error labels. |
client_auth does not parse FIX tags or JSON itself; it relies entirely on its sibling modules (client_fix and client_http) and only handles the business logic of when to execute them.getState() safely.