Add share and percent order intents
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user