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

Converts a raw FIX message string into a ModifyOrderRequest object. More...

#include <BinaryToModifyOrderRequestConverter.h>

Collaboration diagram for fix::BinaryToModifyOrderRequestConverter:
Collaboration graph

Static Public Member Functions

static std::optional< ModifyOrderRequestconvert (const std::string &fixMessage)
 Converts a raw FIX message string into a ModifyOrderRequest object.
 

Detailed Description

Converts a raw FIX message string into a ModifyOrderRequest object.

This class provides a static method to parse a FIX "Order Cancel Replace Request" (MsgType=G) message string and extract the relevant fields to construct a ModifyOrderRequest.

Member Function Documentation

◆ convert()

std::optional< ModifyOrderRequest > fix::BinaryToModifyOrderRequestConverter::convert ( const std::string &  fixMessage)
static

Converts a raw FIX message string into a ModifyOrderRequest object.

Parses the given FIX message string. If the message is a valid "Order Cancel Replace Request" and all required fields are present and correctly formatted, a ModifyOrderRequest object is returned. Otherwise, std::nullopt is returned.

Parameters
fixMessageThe raw FIX message string to convert.
Returns
An std::optional<ModifyOrderRequest> containing the parsed modify 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: