Demo Application
The demo
folder contains a minimal example showing how to wire Flox components together.
It assembles a working engine with simulated market data and a very simple trading strategy.
Features
DemoConnector
generates synthetic trades and book updatesDemoStrategy
reacts to trades and updates its own order bookSimpleOrderExecutor
submits mock orders and reports fills viaOrderExecutionBus
SimplePnLTracker
,SimpleKillSwitch
, andSimpleRiskManager
illustrate supporting modulesDemoBuilder
createsMarketDataBus
,CandleBus
, and other subsystems
Running
After building the project with CMake you can run the demo binary:
./demo/flox_demo
It will start two demo connectors, publish market data, and run the strategy for around five seconds before stopping.