|
BetaTrader
A HFT Eco-System
|
A command to submit a new order to the trading engine. More...
#include <NewOrder.h>


Public Member Functions | |
| NewOrder (const common::ClientID &clientId, const common::Timestamp timestamp, std::unique_ptr< common::Order > order) | |
| Constructs a new NewOrder command. | |
| common::ClientID | getClientId () const |
| Gets the client's identifier. | |
| common::Order * | getOrder () const |
| Gets the order associated with this command. | |
| common::Timestamp | getTimestamp () const |
| Gets the command's timestamp. | |
| CommandType | getType () const |
| Gets the type of the command. | |
| std::unique_ptr< common::Order > | releaseOrder () |
| Releases ownership of the order. | |
Private Attributes | |
| common::ClientID | mClientId |
| std::unique_ptr< common::Order > | mOrder |
| A unique pointer to the new order. | |
| common::Timestamp | mTimestamp |
| The timestamp of when the command was created. | |
| CommandType | mType |
| The type of the command. | |
A command to submit a new order to the trading engine.
This class derives from the base Command class and encapsulates the data required to create a new order, including the client ID, timestamp, and a unique pointer to the Order object.
|
inlineexplicit |
Constructs a new NewOrder command.
| clientId | The identifier of the client submitting the order. |
| timestamp | The time at which the command was created. |
| order | A unique pointer to the common::Order object being submitted. |
|
inlineinherited |
Gets the client's identifier.

|
inline |
Gets the order associated with this command.

|
inlineinherited |
Gets the command's timestamp.
|
inlineinherited |
Gets the type of the command.
|
inline |
Releases ownership of the order.

|
privateinherited |
The identifier of the client sending the command.
|
private |
A unique pointer to the new order.
|
privateinherited |
The timestamp of when the command was created.
|
privateinherited |
The type of the command.