BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
WorkerThread.h File Reference

Worker thread that consumes command queue and executes trading logic. More...

#include "CancelOrder.h"
#include "Command.h"
#include "ExecutionPublisher.h"
#include "Matcher.h"
#include "ModifyOrder.h"
#include "NewOrder.h"
#include "OrderBook.h"
#include "OrderManager.h"
#include "RiskManager.h"
#include "data/OrderRepository.h"
#include "rigtorp/SPSCQueue.h"
#include <memory>
#include <stop_token>
#include <thread>
Include dependency graph for WorkerThread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  trading_core::WorkerThread
 Background worker which processes batched commands. More...
 

Namespaces

namespace  trading_core
 

Detailed Description

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.