Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::StrategyConfig Struct Reference

#include <slick-trader/core/strategy_config.hpp>

Collaboration diagram for slick::trader::StrategyConfig:

Public Member Functions

template<typename T>
T get_parameter (const std::string &key, const T &default_value) const

Static Public Member Functions

static StrategyConfig from_json (const nlohmann::json &j)

Public Attributes

std::string name
bool enabled {true}
RiskLimits risk_limits
nlohmann::json parameters = nlohmann::json::object()

Detailed Description

Definition at line 13 of file strategy_config.hpp.

Member Function Documentation

◆ from_json()

◆ get_parameter()

template<typename T>
T slick::trader::StrategyConfig::get_parameter ( const std::string & key,
const T & default_value ) const
inline

Definition at line 29 of file strategy_config.hpp.

References parameters.

Member Data Documentation

◆ enabled

bool slick::trader::StrategyConfig::enabled {true}

Definition at line 15 of file strategy_config.hpp.

Referenced by from_json().

◆ name

std::string slick::trader::StrategyConfig::name

Definition at line 14 of file strategy_config.hpp.

Referenced by from_json().

◆ parameters

nlohmann::json slick::trader::StrategyConfig::parameters = nlohmann::json::object()

Definition at line 22 of file strategy_config.hpp.

Referenced by from_json(), and get_parameter().

◆ risk_limits

RiskLimits slick::trader::StrategyConfig::risk_limits

Definition at line 18 of file strategy_config.hpp.

Referenced by from_json().


The documentation for this struct was generated from the following file: