This project aims to analyze large order book datasets from financial markets to extract meaningful insights and patterns. The project prioritizes clean code, efficient data structures, and modular design for maintainability and scalability.
- An enum is used to represent the
orderType
attribute, limiting its possible values to "bid" and "ask". - This enum is defined in a dedicated header file (e.g.,
OrderBookEnums.h
) to improve code organization and reusability.
- A dedicated class,
OrderBookEntry
, is implemented to represent individual entries in the order book. - The class definition resides in
OrderBookEntry.h
, while its member functions are implemented inOrderBookEntry.cpp
. - This separation promotes encapsulation and makes the code easier to understand and maintain.
- Given the large dataset, we utilize the
std::vector
container for efficient storage and access ofOrderBookEntry
objects.
- Functions previously defined in
merkelMain.h
are moved to separate header and implementation files (e.g.,OrderBookUtils.h
andOrderBookUtils.cpp
). - This refactoring promotes code modularity and reduces the complexity of individual files.