Orderbook Simulation
OrderbookSim is a C++ application simulating a financial market order book. It efficiently manages and matches buy and sell orders while calculating the Volume-Weighted Average Price (VWAP).
TradeInfo.hpp
Go to the documentation of this file.
1 
9 #pragma once
10 #include "Usings.hpp"
11 
19 struct TradeInfo {
23 };
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
std::uint64_t OrderId
Represents a unique identifier for an order.
Definition: Usings.hpp:37
Holds essential information about a trade, including order ID, price, and quantity.
Definition: TradeInfo.hpp:19
OrderId _orderId
Definition: TradeInfo.hpp:20
Quantity _quantity
Definition: TradeInfo.hpp:22
Price _price
Definition: TradeInfo.hpp:21