|
BetaTrader
A HFT Eco-System
|
A layer above FixClientSession that handles the 35=BE/BF credentials exchange. More...
#include <AuthManager.h>

Public Types | |
| using | AuthCallback = std::function< void(bool success, const std::string &message)> |
Public Member Functions | |
| AuthManager (std::shared_ptr< FixClientSession > session) | |
| void | authenticate (const std::string &username, const std::string &password, AuthCallback callback) |
| Sends the 35=BE message and awaits response. | |
| bool | handleMessage (const ParsedFixMessage &parsed, const std::string &rawFix) |
| Intercepts incoming messages looking for 35=BF. | |
Private Attributes | |
| AuthCallback | mPendingCallback |
| std::string | mPendingReqId |
| std::shared_ptr< FixClientSession > | mSession |
A layer above FixClientSession that handles the 35=BE/BF credentials exchange.
In BetaTrader, after the session is physically connected and Logged On (35=A), a client must still authenticate its trading account using a UserRequest (35=BE) before sending orders or subscribing to market data.
| using fix_client::AuthManager::AuthCallback = std::function<void(bool success, const std::string& message)> |
| fix_client::AuthManager::AuthManager | ( | std::shared_ptr< FixClientSession > | session | ) |
| void fix_client::AuthManager::authenticate | ( | const std::string & | username, |
| const std::string & | password, | ||
| AuthCallback | callback | ||
| ) |
Sends the 35=BE message and awaits response.
| username | Account username |
| password | Account password |
| callback | Fired when 35=BF is received. |
| bool fix_client::AuthManager::handleMessage | ( | const ParsedFixMessage & | parsed, |
| const std::string & | rawFix | ||
| ) |
Intercepts incoming messages looking for 35=BF.

|
private |
|
private |
|
private |