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).
LevelInfo.hpp
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include "Usings.hpp"
12 #include <vector>
13 
21 struct LevelInfo {
24 };
25 
33 using LevelInfos = std::vector<LevelInfo>;
std::vector< LevelInfo > LevelInfos
A vector of LevelInfo objects for managing multiple price levels.
Definition: LevelInfo.hpp:33
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
Represents a price level in an order book, including its price and quantity.
Definition: LevelInfo.hpp:21
Quantity _quantity
The quantity available at this price level.
Definition: LevelInfo.hpp:23
Price _price
The price at this level in the order book.
Definition: LevelInfo.hpp:22