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).
|
Defines the Side enum for representing order sides (buy or sell) and utility functions. More...
#include <string>
Go to the source code of this file.
Enumerations | |
enum class | Side { Buy , Sell } |
Represents the side of an order in a trading system (either buy or sell). More... | |
Functions | |
std::string | sideToString (Side side) |
Converts a Side value to its corresponding string representation. More... | |
Defines the Side enum for representing order sides (buy or sell) and utility functions.
The Side enum is used to distinguish between buy and sell orders, and includes a utility function for converting the enum to a string representation.
|
strong |
|
inline |
Converts a Side value to its corresponding string representation.
This function provides a string representation of each order side for display or logging.
side | The Side value to convert to a string. |