Skip to main content

sandbox_quant/strategy/
command.rs

1use crate::domain::instrument::Instrument;
2use crate::strategy::model::StrategyTemplate;
3
4#[derive(Debug, Clone, PartialEq)]
5pub struct StrategyStartConfig {
6    pub risk_pct: f64,
7    pub win_rate: f64,
8    pub r_multiple: f64,
9    pub max_entry_slippage_pct: f64,
10}
11
12#[derive(Debug, Clone, PartialEq)]
13pub enum StrategyCommand {
14    Templates,
15    Start {
16        template: StrategyTemplate,
17        instrument: Instrument,
18        config: StrategyStartConfig,
19    },
20    List,
21    Show {
22        watch_id: u64,
23    },
24    Stop {
25        watch_id: u64,
26    },
27    History,
28}