34 bool initialize(
const std::string& config_path);
40 bool is_running()
const {
return running_.load(std::memory_order_relaxed); }
51 void publish_regiter_end(uint32_t num_producers);
52 bool wait_for_brokers_ready(std::chrono::seconds timeout = std::chrono::seconds(30));
54 std::atomic_bool running_{
false};
57 std::unique_ptr<slick::stream_buffer_multiplexer> event_mux_;
58 std::unique_ptr<slick::queue<uint8_t>> control_queue_;
59 std::unique_ptr<MdRequestQueues> md_request_queues_;
60 std::unique_ptr<slick::queue<uint8_t>> order_request_queue_;
62 std::vector<std::shared_ptr<IBroker>> brokers_;
66 std::unique_ptr<PositionStore> position_store_;
67 PositionTracker position_tracker_;
68 PnLCalculator pnl_calculator_;
69 RiskManager risk_manager_;
71 std::unique_ptr<StrategyManager> strategy_manager_;
72 std::unique_ptr<WebServer> web_server_;