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
Side.hpp
Go to the documentation of this file.
1
9
#pragma once
10
#include <string>
11
16
enum class
Side
{
17
Buy
,
18
Sell
19
};
20
29
inline
std::string
sideToString
(
Side
side) {
30
switch
(side) {
31
case
Side::Buy
:
return
"Buy"
;
32
case
Side::Sell
:
return
"Sell"
;
33
default
:
return
"Unknown"
;
34
}
35
}
sideToString
std::string sideToString(Side side)
Converts a Side value to its corresponding string representation.
Definition:
Side.hpp:29
Side
Side
Represents the side of an order in a trading system (either buy or sell).
Definition:
Side.hpp:16
Side::Sell
@ Sell
Side::Buy
@ Buy
Generated by
1.9.1