20 using timeChrono = std::chrono::system_clock::time_point;
47 _time = std::chrono::system_clock::now();
70 std::time_t timeT = std::chrono::system_clock::to_time_t(_time);
72 localtime_s(&tm, &timeT);
73 std::ostringstream oss;
74 oss << std::put_time(&tm,
"%Y-%m-%d %H:%M:%S");
std::chrono::system_clock::time_point timeChrono
Definition: MatchedOrderDetails.hpp:20
Defines the OrderType enum and related utility functions for handling different order types.
Defines the Side enum for representing order sides (buy or sell) and utility functions.
Defines type aliases commonly used in the trading system.
std::int32_t Price
Represents the price of an order or trade.
Definition: Usings.hpp:21
std::uint32_t Quantity
Represents the quantity or volume of assets in an order or trade.
Definition: Usings.hpp:29
Stores details of a matched order, including price, quantity, and time.
Definition: MatchedOrderDetails.hpp:30
std::string getTime() const
Retrieves the timestamp of when the order was matched as a formatted string.
Definition: MatchedOrderDetails.hpp:69
MatchedOrderDetail(Price price, Quantity qty)
Constructs a MatchedOrderDetail with specified price and quantity.
Definition: MatchedOrderDetails.hpp:46
Quantity getQuantity() const
Retrieves the quantity of the matched order.
Definition: MatchedOrderDetails.hpp:60
Price getPrice() const
Retrieves the price of the matched order.
Definition: MatchedOrderDetails.hpp:54