|
BetaTrader
A HFT Eco-System
|
core/data) The Data module provides a persistence layer for the BetaTrader system.
This module is responsible for asynchronously writing core business data, such as trades and orders, to a local SQLite database. It is designed to be a separate, non-blocking service that the trading_core can use for persistence without incurring I/O latency on its critical path. The architecture is built on an asynchronous worker pattern, where database operations are submitted to a queue and executed on a dedicated background thread.
Order and Trade objects.To build the module and run its associated tests, follow the instructions in the main project README and then execute the tests from the build directory:
For a detailed technical breakdown of the architecture, class designs, and database schema, please refer to the Technical System Design (TSD).