30 std::unique_ptr<common::Order> order)
32 mOrder(std::move(order)) {};
50 std::unique_ptr<common::Order>
Represents a single trading order in the system.
Definition Order.h:19
An internal representation of a request, converted from an FIX message into this object for faster pr...
Definition Command.h:22
A command to submit a new order to the trading engine.
Definition NewOrder.h:19
common::Order * getOrder() const
Gets the order associated with this command.
Definition NewOrder.h:38
NewOrder(const common::ClientID &clientId, const common::Timestamp timestamp, std::unique_ptr< common::Order > order)
Constructs a new NewOrder command.
Definition NewOrder.h:28
std::unique_ptr< common::Order > mOrder
A unique pointer to the new order.
Definition NewOrder.h:51
std::unique_ptr< common::Order > releaseOrder()
Releases ownership of the order.
Definition NewOrder.h:44
std::chrono::system_clock::time_point Timestamp
A type alias for std::chrono::system_clock::time_point.
Definition Time.h:15
std::string ClientID
A type alias for client identifiers.
Definition Types.h:140
Definition CancelOrder.h:10
CommandType
Represents the different types of commands that can be processed by the trading engine.
Definition CommandType.h:13