BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
fix::BinaryToOrderRequestConverter Class Reference

Converts a raw FIX message string into an OrderRequest object. More...

#include <BinaryToOrderRequestConverter.h>

Collaboration diagram for fix::BinaryToOrderRequestConverter:
Collaboration graph

Static Public Member Functions

static std::optional< OrderRequestconvert (const std::string &fixMessage)
 Converts a raw FIX message string into an OrderRequest object.
 

Detailed Description

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.

Member Function Documentation

◆ convert()

std::optional< OrderRequest > fix::BinaryToOrderRequestConverter::convert ( const std::string &  fixMessage)
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.

Parameters
fixMessageThe raw FIX message string to convert.
Returns
An std::optional<OrderRequest> containing the parsed order request if successful, or std::nullopt if parsing fails.
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: