|
BetaTrader
A HFT Eco-System
|
Converts a raw FIX message string into an OrderRequest object.
More...
#include <BinaryToOrderRequestConverter.h>

Static Public Member Functions | |
| static std::optional< OrderRequest > | convert (const std::string &fixMessage) |
Converts a raw FIX message string into an OrderRequest object. | |
Converts a raw FIX message string into an OrderRequest object.
This class provides a static method to parse a FIX "New Order - Single" (MsgType=D) message string and extract the relevant fields to construct an OrderRequest.
|
static |
Converts a raw FIX message string into an OrderRequest object.
Parses the given FIX message string. If the message is a valid "New Order - Single" and all required fields are present and correctly formatted, an OrderRequest object is returned. Otherwise, std::nullopt is returned.
| fixMessage | The raw FIX message string to convert. |
std::optional<OrderRequest> containing the parsed order request if successful, or std::nullopt if parsing fails. 
