|
BetaTrader
A HFT Eco-System
|
Represents a single trading order in the system. More...
#include <Order.h>

Public Member Functions | |
| Order (const OrderID clientOrderId, const OrderID coreOrderId, const Symbol symbol, ClientID client, std::string senderCompID, const OrderSide side, const OrderType type, const TimeInForce timeInForce, const Quantity quantity, const Price price, const Timestamp ts) | |
| Constructs a new Order object. | |
| const ClientID & | getClientId () const |
| Gets the client's identifier (session ID). | |
| const OrderID & | getClientOrderId () const |
| Gets the order's client-provided identifier. | |
| const OrderID & | getId () const |
| Gets the order's core-provided identifier. This is the primary ID for internal tracking. | |
| OrderType | getOrderType () const |
| Gets the order type (Limit/Market). | |
| Quantity | getOriginalQuantity () const |
| Gets the original quantity of the order. | |
| Price | getPrice () const |
| Gets the order price. | |
| Quantity | getRemainingQuantity () const |
| Gets the remaining quantity of the order. | |
| const std::string & | getSenderCompID () const |
| Gets the SenderCompID, identifying the actual trader. | |
| OrderSide | getSide () const |
| Gets the order side (Buy/Sell). | |
| OrderStatus | getStatus () const |
| Gets the current status of the order. | |
| const Symbol & | getSymbol () const |
| Gets the financial instrument symbol. | |
| TimeInForce | getTimeInForce () const |
| Gets the time in force of the order. | |
| Timestamp | getTimestamp () const |
| Gets the order creation timestamp. | |
| void | setClientOrderId (const OrderID id) |
| Sets the order's client-provided identifier. | |
| void | setCoreOrderId (const OrderID id) |
| Sets the order's core-provided identifier. | |
| void | setOriginalQuantity (const Quantity qty) |
| Sets the original and remaining quantity of the order. | |
| void | setPrice (const Price price) |
| Sets the price of the order. | |
| void | setRemainingQuantity (const Quantity qty) |
| Sets the remaining quantity of the order. | |
| void | setStatus (const OrderStatus status) |
| Sets the status of the order. | |
| void | setTimestamp (const Timestamp ts) |
| Sets the timestamp of the order. | |
Private Attributes | |
| ClientID | mClientId |
| Identifier of the client placing the order (session ID). | |
| OrderID | mClientOrderId |
| Unique identifier for the order given by client. | |
| OrderID | mCoreOrderId |
| Unique identifier for the order given by core. | |
| OrderSide | mOrderSide |
| The side of the order (Buy or Sell). | |
| OrderStatus | mOrderStatus |
| The current status of the order. | |
| OrderType | mOrderType |
| The type of the order (Limit or Market). | |
| Quantity | mOriginalQuantity |
| The original quantity of the order. | |
| Price | mPrice |
| The price of the order. | |
| Quantity | mRemainingQuantity |
| The quantity of the order that has not yet been filled. | |
| std::string | mSenderCompID |
| SenderCompID from the FIX message, identifying the actual trader. | |
| Symbol | mSymbol |
| Financial instrument symbol. | |
| TimeInForce | mTimeInForce |
| The time in force of the order. | |
| Timestamp | mTimestamp |
| The timestamp of when the order was created. | |
Represents a single trading order in the system.
This class is a data model that encapsulates all the properties of an order, such as its ID, symbol, client, side, type, quantity, price, and status.
|
inline |
Constructs a new Order object.
| clientOrderId | The unique identifier for the order given by the client. |
| coreOrderId | The unique identifier for the order assigned by the core. |
| symbol | The financial instrument symbol. |
| client | The identifier of the client placing the order. |
| senderCompID | The SenderCompID from the FIX message, identifying the actual trader. |
| side | The side of the order (Buy or Sell). |
| type | The type of the order (Limit or Market). |
| timeInForce | The time in force of the order. |
| quantity | The original quantity of the order. |
| price | The price of the order. |
| ts | The timestamp of when the order was created. |
|
inline |
Gets the client's identifier (session ID).

|
inline |
Gets the order's client-provided identifier.

|
inline |
Gets the order's core-provided identifier. This is the primary ID for internal tracking.

|
inline |
Gets the order type (Limit/Market).

|
inline |
Gets the original quantity of the order.

|
inline |
Gets the order price.

|
inline |
Gets the remaining quantity of the order.

|
inline |
Gets the SenderCompID, identifying the actual trader.

|
inline |
Gets the order side (Buy/Sell).

|
inline |
Gets the current status of the order.

|
inline |
Gets the financial instrument symbol.

|
inline |
Gets the time in force of the order.

|
inline |
Gets the order creation timestamp.

|
inline |
Sets the order's client-provided identifier.
|
inline |
Sets the order's core-provided identifier.
|
inline |
Sets the original and remaining quantity of the order.
|
inline |
Sets the price of the order.
|
inline |
Sets the remaining quantity of the order.

|
inline |
Sets the status of the order.

|
inline |
Sets the timestamp of the order.
|
private |
Identifier of the client placing the order (session ID).
|
private |
Unique identifier for the order given by client.
|
private |
Unique identifier for the order given by core.
|
private |
The side of the order (Buy or Sell).
|
private |
The current status of the order.
|
private |
The type of the order (Limit or Market).
|
private |
The original quantity of the order.
|
private |
The price of the order.
|
private |
The quantity of the order that has not yet been filled.
|
private |
SenderCompID from the FIX message, identifying the actual trader.
|
private |
Financial instrument symbol.
|
private |
The time in force of the order.
|
private |
The timestamp of when the order was created.