Add share and percent order intents

This commit is contained in:
boris
2026-04-23 02:03:24 -07:00
parent 23ba74909d
commit 0bc224f703
3 changed files with 482 additions and 0 deletions

View File

@@ -84,6 +84,16 @@ impl StrategyDecision {
#[derive(Debug, Clone)]
pub enum OrderIntent {
Shares {
symbol: String,
quantity: i32,
reason: String,
},
Lots {
symbol: String,
lots: i32,
reason: String,
},
TargetValue {
symbol: String,
target_value: f64,
@@ -94,6 +104,16 @@ pub enum OrderIntent {
value: f64,
reason: String,
},
Percent {
symbol: String,
percent: f64,
reason: String,
},
TargetPercent {
symbol: String,
target_percent: f64,
reason: String,
},
}
#[derive(Debug, Clone)]