pub type StrategyConfig = MultiStrategyConfig;Expand description
An alias for the strategy configuration type.
Aliased Type§
pub struct StrategyConfig {
pub on_fail_continue: bool,
pub allow_recursive: bool,
pub execution_interval: u64,
pub strategies: Vec<Strategy>,
}Fields§
§on_fail_continue: boolDetermines if the strategy should continue executing the next strategy if the current one failed.
If set to true, the strategy behaves like a logical AND chain of SingularStrategies
Otherwise, it behaves like a logical OR chain of SingularStrategies.
Default is true.
allow_recursive: boolIndicate whether the MultiStrategy can contain another MultiStrategy.
Default is true.
execution_interval: u64Execution interval of the configured strategies in seconds.
Default is 60, minimum is 1.
strategies: Vec<Strategy>Configuration of individual sub-strategies.
Default is empty, which makes the MultiStrategy behave as passive.