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
orderTypeattribute, 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::vectorcontainer for efficient storage and access ofOrderBookEntryobjects.
- Functions previously defined in
merkelMain.hare moved to separate header and implementation files (e.g.,OrderBookUtils.handOrderBookUtils.cpp). - This refactoring promotes code modularity and reduces the complexity of individual files.