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).
Usings.hpp
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include <numeric>
12 #include <vector>
13 #include <cstdint> // Provides fixed-width integer types like int32_t, uint32_t, uint64_t
14 
21 using Price = std::int32_t;
22 
29 using Quantity = std::uint32_t;
30 
37 using OrderId = std::uint64_t;
38 
45 using OrderIds = std::vector<OrderId>;
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::vector< OrderId > OrderIds
A collection of unique order identifiers.
Definition: Usings.hpp:45
std::uint64_t OrderId
Represents a unique identifier for an order.
Definition: Usings.hpp:37