BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
fix_client::FixMessageParser Class Reference

Parses raw FIX messages received from the server into strongly-typed structures. More...

#include <FixMessageParser.h>

Collaboration diagram for fix_client::FixMessageParser:
Collaboration graph

Static Public Member Functions

static ParsedFixMessage parse (const std::string &fixMessage)
 Parses a raw FIX message string.
 

Static Private Member Functions

static std::optional< fix::ExecutionReportparseExecutionReport (const std::string &fixMessage)
 
static std::optional< fix::MarketDataIncrementalRefreshparseMarketDataIncremental (const std::string &fixMessage)
 
static std::optional< fix::MarketDataSnapshotFullRefreshparseMarketDataSnapshot (const std::string &fixMessage)
 

Detailed Description

Parses raw FIX messages received from the server into strongly-typed structures.

Handles '8' (ExecutionReport), 'W' (MarketDataSnapshotFullRefresh), and 'X' (MarketDataIncrementalRefresh).

Member Function Documentation

◆ parse()

ParsedFixMessage fix_client::FixMessageParser::parse ( const std::string &  fixMessage)
static

Parses a raw FIX message string.

Parameters
fixMessageThe raw FIX message including SOH delimiters.
Returns
A parsed variant representing the message. Returns monostate if unparseable or irrelevant.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseExecutionReport()

std::optional< fix::ExecutionReport > fix_client::FixMessageParser::parseExecutionReport ( const std::string &  fixMessage)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseMarketDataIncremental()

std::optional< fix::MarketDataIncrementalRefresh > fix_client::FixMessageParser::parseMarketDataIncremental ( const std::string &  fixMessage)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseMarketDataSnapshot()

std::optional< fix::MarketDataSnapshotFullRefresh > fix_client::FixMessageParser::parseMarketDataSnapshot ( const std::string &  fixMessage)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: