|
BetaTrader
A HFT Eco-System
|
Represents a single trade execution in the system. More...
#include <Trade.h>

Public Member Functions | |
| Trade (TradeID tradeId, Instrument symbol, OrderID buyOrderId, OrderID sellOrderId, const Quantity qty, const Price price, const Timestamp ts) | |
| Constructs a new Trade object. | |
| const OrderID & | getBuyOrderId () const |
| Gets the buy order's unique identifier. | |
| const Instrument & | getOrderSymbol () const |
| Gets the financial instrument symbol. | |
| Price | getPrice () const |
| Gets the trade price. | |
| Quantity | getQuantity () const |
| Gets the trade quantity. | |
| const OrderID & | getSellOrderId () const |
| Gets the sell order's unique identifier. | |
| Timestamp | getTimestamp () const |
| Gets the trade timestamp. | |
| const TradeID & | getTradeId () const |
| Gets the trade's unique identifier. | |
Private Attributes | |
| OrderID | mBuyOrderId |
| The ID of the buy order involved in the trade. | |
| Instrument | mOrderSymbol |
| Financial instrument symbol. | |
| Price | mPrice |
| The price at which the trade was executed. | |
| Quantity | mQuantity |
| The quantity of the trade. | |
| OrderID | mSellOrderId |
| Timestamp | mTimestamp |
| The timestamp of when the trade occurred. | |
| TradeID | mTradeId |
| Unique identifier for the trade. | |
Represents a single trade execution in the system.
This class is a data model that encapsulates all the properties of a trade, including its ID, symbol, buy/sell order IDs, quantity, price, and timestamp.
|
inline |
Constructs a new Trade object.
| tradeId | The unique identifier for the trade. |
| symbol | The financial instrument symbol. |
| buyOrderId | The ID of the buy order involved in the trade. |
| sellOrderId | The ID of the sell order involved in the trade. |
| qty | The quantity of the trade. |
| price | The price at which the trade was executed. |
| ts | The timestamp of when the trade occurred. |
|
inline |
Gets the buy order's unique identifier.

|
inline |
Gets the financial instrument symbol.

|
inline |
Gets the trade price.

|
inline |
Gets the trade quantity.

|
inline |
Gets the sell order's unique identifier.

|
inline |
Gets the trade timestamp.

|
inline |
Gets the trade's unique identifier.

|
private |
The ID of the buy order involved in the trade.
|
private |
Financial instrument symbol.
|
private |
The price at which the trade was executed.
|
private |
The quantity of the trade.
|
private |
The ID of the sell order involved in the trade.
|
private |
The timestamp of when the trade occurred.
|
private |
Unique identifier for the trade.