|
BetaTrader
A HFT Eco-System
|
Manages the lifecycle of a local Exchange instance (TradingCore + FixServer). More...
#include <ExchangeManager.h>

Public Member Functions | |
| ExchangeManager (asio::io_context &ioCtx) | |
| ~ExchangeManager () | |
| trading_core::TradingCore * | getCore () |
| fix::FixServer * | getServer () |
| bool | isRunning () const |
| bool | start (short port=8088) |
| Starts the exchange services. | |
| void | stop () |
| Stops all exchange services. | |
Private Attributes | |
| std::unique_ptr< fix::FixServer > | mFixServer |
| asio::io_context & | mIoCtx |
| std::atomic< bool > | mIsRunning {false} |
| std::unique_ptr< data::SequenceRepository > | mSeqRepo |
| std::unique_ptr< trading_core::TradingCore > | mTradingCore |
Manages the lifecycle of a local Exchange instance (TradingCore + FixServer).
|
explicit |
| admin::ExchangeManager::~ExchangeManager | ( | ) |

|
inline |

|
inline |

|
inline |

| bool admin::ExchangeManager::start | ( | short | port = 8088 | ) |
Starts the exchange services.
| port | TCP port for the FIX server. |


| void admin::ExchangeManager::stop | ( | ) |
Stops all exchange services.

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