|
BetaTrader
A HFT Eco-System
|
Worker thread that consumes command queue and executes trading logic. More...
#include <exchange_routing/CancelOrder.h>#include <exchange_routing/Command.h>#include <exchange_publishers/ExecutionPublisher.h>#include <exchange_matching/Matcher.h>#include <exchange_routing/ModifyOrder.h>#include <exchange_routing/NewOrder.h>#include <exchange_matching/OrderBook.h>#include <exchange_state/OrderManager.h>#include <exchange_risk/RiskManager.h>#include "data/OrderRepository.h"#include "rigtorp/SPSCQueue.h"#include <memory>#include <stop_token>#include <thread>

Go to the source code of this file.
Classes | |
| class | trading_core::WorkerThread |
| Background worker which processes batched commands. More... | |
Namespaces | |
| namespace | trading_core |
Worker thread that consumes command queue and executes trading logic.
The WorkerThread reads commands from a single-producer single-consumer queue, delegates them to the appropriate handlers (new/modify/cancel), and applies matching and persistence operations.