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).
OrderbookSim
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>;
Price
std::int32_t Price
Represents the price of an order or trade.
Definition:
Usings.hpp:21
Quantity
std::uint32_t Quantity
Represents the quantity or volume of assets in an order or trade.
Definition:
Usings.hpp:29
OrderIds
std::vector< OrderId > OrderIds
A collection of unique order identifiers.
Definition:
Usings.hpp:45
OrderId
std::uint64_t OrderId
Represents a unique identifier for an order.
Definition:
Usings.hpp:37
Generated by
1.9.1