|
Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
|
#include <slick-trader/events/strategy_config_event.hpp>
Public Member Functions | |
| StrategyConfigEvent () | |
| void | set_strategy (std::string_view name) |
| void | set_config (std::string_view json_text) |
| std::string_view | config_text () const |
| Public Member Functions inherited from slick::trader::Event | |
| Event (EventType t=EventType::TRADE) | |
| void | set_instrument (std::string_view instr) |
Static Public Member Functions | |
| static uint32_t | size_for (size_t json_length) |
Public Attributes | |
| char | strategy [MAX_STRATEGY_NAME_LENGTH] |
| uint32_t | config_length |
| char | config [0] |
| Public Attributes inherited from slick::trader::Event | |
| EventType | type |
| uint64_t | timestamp_ns |
| uint64_t | event_time_ns |
| BrokerId | broker_id |
| char | instrument [MAX_INSTRUMENT_LENGTH] |
Definition at line 30 of file strategy_config_event.hpp.
|
inline |
Definition at line 35 of file strategy_config_event.hpp.
References slick::trader::Event::Event(), config_length, and strategy.
Referenced by size_for().
|
inline |
Definition at line 52 of file strategy_config_event.hpp.
References config, and config_length.
|
inline |
Definition at line 47 of file strategy_config_event.hpp.
References config, and config_length.
|
inline |
Definition at line 41 of file strategy_config_event.hpp.
References slick::trader::MAX_STRATEGY_NAME_LENGTH, and strategy.
|
inlinestatic |
Definition at line 56 of file strategy_config_event.hpp.
References StrategyConfigEvent().
| char slick::trader::StrategyConfigEvent::config[0] |
Definition at line 33 of file strategy_config_event.hpp.
Referenced by config_text(), and set_config().
| uint32_t slick::trader::StrategyConfigEvent::config_length |
Definition at line 32 of file strategy_config_event.hpp.
Referenced by StrategyConfigEvent(), config_text(), and set_config().
| char slick::trader::StrategyConfigEvent::strategy[MAX_STRATEGY_NAME_LENGTH] |
Definition at line 31 of file strategy_config_event.hpp.
Referenced by StrategyConfigEvent(), and set_strategy().