|
BetaTrader
A HFT Eco-System
|
Classes | |
| class | Order |
| Represents a single trading order in the system. More... | |
| class | Trade |
| Represents a single trade execution in the system. More... | |
Typedefs | |
| using | ClientID = std::string |
| A type alias for client identifiers. | |
| using | OrderID = uint64_t |
| A type alias for unique order identifiers. | |
| using | Price = double |
| A type alias for price values. | |
| using | Quantity = uint64_t |
| A type alias for quantity values. | |
| using | SessionID = uint64_t |
| A type alias for session identifiers. | |
| using | Symbol = Instrument |
| A type alias for financial instrument symbols. | |
| using | Timestamp = std::chrono::system_clock::time_point |
| A type alias for std::chrono::system_clock::time_point. | |
| using | TradeID = uint64_t |
| A type alias for unique trade identifiers. | |
Enumerations | |
| enum class | Instrument : uint8_t { EURUSD , USDJPY , GBPUSD , USDCAD , USDINR , EURINR , GBPINR , AUDUSD , USDMXN , COUNT } |
| Represents the financial instruments available for trading. More... | |
| enum class | OrderSide : uint8_t { Buy , Sell } |
| Represents the side of an order (Buy or Sell). More... | |
| enum class | OrderStatus : uint8_t { New , PartiallyFilled , Filled , Cancelled , Rejected } |
| Represents the lifecycle of an order. More... | |
| enum class | OrderType : uint8_t { Limit , Market , Stop , StopLimit } |
| Represents the execution logic of an order. More... | |
| enum class | TimeInForce : uint8_t { DAY , GTC , IOC , FOK , MOO , MOC } |
| Guides How long the order is in the system. More... | |
Functions | |
| Instrument | from_string (std::string_view name) |
| Converts a string to its corresponding Instrument enum. | |
| OrderSide | from_string_OrderSide (std::string_view name) |
| OrderStatus | from_string_OrderStatus (std::string_view name) |
| OrderType | from_string_OrderType (std::string_view name) |
| TimeInForce | from_string_TimeInForce (std::string_view name) |
| std::string | to_string (Instrument symbol) |
| Converts an Instrument enum to its string representation. | |
| std::string | to_string (OrderSide side) |
| std::string | to_string (OrderStatus status) |
| std::string | to_string (OrderType type) |
| std::string | to_string (TimeInForce tif) |
Variables | |
| constexpr std::array< std::string_view, 2 > | order_side_names = {"Buy", "Sell"} |
| constexpr std::array< std::string_view, 5 > | order_status_names = {"New", "PartiallyFilled", "Filled", "Cancelled", "Rejected"} |
| constexpr std::array< std::string_view, 2 > | order_type_names = {"Limit", "Market"} |
| constexpr std::array< std::string_view, static_cast< size_t >(Instrument::COUNT)> | symbol_names |
| An array of string representations for the Instrument enum. | |
| constexpr std::array< std::string_view, 6 > | time_in_force_names = {"DAY", "GTC", "IOC", "FOK", "MOO", "MOC"} |
| using common::ClientID = typedef std::string |
A type alias for client identifiers.
| using common::OrderID = typedef uint64_t |
A type alias for unique order identifiers.
| using common::Price = typedef double |
A type alias for price values.
| using common::Quantity = typedef uint64_t |
A type alias for quantity values.
| using common::SessionID = typedef uint64_t |
A type alias for session identifiers.
| using common::Symbol = typedef Instrument |
A type alias for financial instrument symbols.
| using common::Timestamp = typedef std::chrono::system_clock::time_point |
A type alias for std::chrono::system_clock::time_point.
This is used throughout the system to represent timestamps for orders, trades, and other time-sensitive events.
| using common::TradeID = typedef uint64_t |
A type alias for unique trade identifiers.
|
strong |
Represents the financial instruments available for trading.
|
strong |
|
strong |
Represents the lifecycle of an order.
|
strong |
Represents the execution logic of an order.
|
strong |
|
inline |
Converts a string to its corresponding Instrument enum.
| name | The string representation of the Instrument. |
| std::invalid_argument | if the string is not a valid instrument. |

|
inline |

|
inline |

|
inline |

|
inline |

|
inline |
Converts an Instrument enum to its string representation.
| symbol | The Instrument to convert. |

|
inline |
|
inline |
|
inline |
|
inline |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
An array of string representations for the Instrument enum.
|
constexpr |