BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
trading_core::ModifyOrder Class Reference

A command to modify an existing order in the trading engine. More...

#include <ModifyOrder.h>

Inheritance diagram for trading_core::ModifyOrder:
Inheritance graph
Collaboration diagram for trading_core::ModifyOrder:
Collaboration graph

Public Member Functions

 ModifyOrder (const common::ClientID &clientId, const common::Timestamp timestamp, const common::OrderID orderId, const common::Price newPrice, const common::Quantity newQuantity)
 Constructs a new ModifyOrder command.
 
common::ClientID getClientId () const
 Gets the client's identifier.
 
const common::PricegetNewPrice () const
 Gets the new price for the order.
 
const common::QuantitygetNewQuantity () const
 Gets the new quantity for the order.
 
common::OrderID getOrderId () const
 Gets the ID of the order to be modified.
 
common::Timestamp getTimestamp () const
 Gets the command's timestamp.
 
CommandType getType () const
 Gets the type of the command.
 

Private Attributes

common::ClientID mClientId
 
common::Price mNewPrice
 The new price for the order.
 
common::Quantity mNewQuantity
 The new quantity for the order.
 
common::OrderID mOrderId
 The ID of the order to be modified.
 
common::Timestamp mTimestamp
 The timestamp of when the command was created.
 
CommandType mType
 The type of the command.
 

Detailed Description

A command to modify an existing order in the trading engine.

This class derives from the base Command class and encapsulates the data required to modify an order, including the order ID, new price, and new quantity.

Constructor & Destructor Documentation

◆ ModifyOrder()

trading_core::ModifyOrder::ModifyOrder ( const common::ClientID clientId,
const common::Timestamp  timestamp,
const common::OrderID  orderId,
const common::Price  newPrice,
const common::Quantity  newQuantity 
)
inlineexplicit

Constructs a new ModifyOrder command.

Parameters
clientIdThe identifier of the client modifying the order.
timestampThe time at which the command was created.
orderIdThe ID of the order to be modified.
newPriceThe new price for the order.
newQuantityThe new quantity for the order.

Member Function Documentation

◆ getClientId()

common::ClientID trading_core::Command::getClientId ( ) const
inlineinherited

Gets the client's identifier.

Here is the caller graph for this function:

◆ getNewPrice()

const common::Price & trading_core::ModifyOrder::getNewPrice ( ) const
inline

Gets the new price for the order.

Here is the caller graph for this function:

◆ getNewQuantity()

const common::Quantity & trading_core::ModifyOrder::getNewQuantity ( ) const
inline

Gets the new quantity for the order.

Here is the caller graph for this function:

◆ getOrderId()

common::OrderID trading_core::ModifyOrder::getOrderId ( ) const
inline

Gets the ID of the order to be modified.

Here is the caller graph for this function:

◆ getTimestamp()

common::Timestamp trading_core::Command::getTimestamp ( ) const
inlineinherited

Gets the command's timestamp.

◆ getType()

CommandType trading_core::Command::getType ( ) const
inlineinherited

Gets the type of the command.

Member Data Documentation

◆ mClientId

common::ClientID trading_core::Command::mClientId
privateinherited

The identifier of the client sending the command.

◆ mNewPrice

common::Price trading_core::ModifyOrder::mNewPrice
private

The new price for the order.

◆ mNewQuantity

common::Quantity trading_core::ModifyOrder::mNewQuantity
private

The new quantity for the order.

◆ mOrderId

common::OrderID trading_core::ModifyOrder::mOrderId
private

The ID of the order to be modified.

◆ mTimestamp

common::Timestamp trading_core::Command::mTimestamp
privateinherited

The timestamp of when the command was created.

◆ mType

CommandType trading_core::Command::mType
privateinherited

The type of the command.


The documentation for this class was generated from the following file: