|
BetaTrader
A HFT Eco-System
|
Simulates thousands of bots trading realistically using a stochastic process. More...
#include <StochasticSimulator.h>

Classes | |
| struct | SymbolState |
Public Member Functions | |
| StochasticSimulator (trading_core::TradingCore &core) | |
| ~StochasticSimulator () | |
| size_t | getBotCount () const |
| double | getIntensity () const |
| bool | isRunning () const |
| void | setBotCount (size_t count) |
| void | setIntensity (double intensity) |
| void | setSymbol (const std::string &symbol) |
| void | start () |
| void | start (int numBots, double intensity) |
| void | stop () |
Private Member Functions | |
| void | run () |
Private Attributes | |
| trading_core::TradingCore & | mCore |
| std::normal_distribution< double > | mDist |
| std::mt19937 | mGen |
| double | mIntensity = 1.0 |
| int | mNumBots = 0 |
| std::atomic< bool > | mRunning {false} |
| std::vector< SymbolState > | mSymbols |
| std::string | mTargetSymbol = "ALL" |
| std::jthread | mThread |
Simulates thousands of bots trading realistically using a stochastic process.
Injects orders directly into TradingCore to bypass network overhead.
|
explicit |
| simulator::StochasticSimulator::~StochasticSimulator | ( | ) |

|
inline |
|
inline |
|
inline |
|
private |


|
inline |
|
inline |
|
inline |
| void simulator::StochasticSimulator::start | ( | ) |


| void simulator::StochasticSimulator::start | ( | int | numBots, |
| double | intensity | ||
| ) |

| void simulator::StochasticSimulator::stop | ( | ) |

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |