修正盘后意图保留及手工观察的阶段时序

This commit is contained in:
boris
2026-09-14 12:27:30 +08:00
parent 7f0c6a008a
commit fb8192a286
8 changed files with 657 additions and 151 deletions
+5 -5
View File
@@ -983,7 +983,7 @@ fn safe_ratio(numerator: f64, denominator: f64) -> f64 {
}
}
#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone, Default, serde::Serialize)]
pub struct StrategyDecision {
pub buy_denials: BTreeMap<String, String>,
pub rebalance: bool,
@@ -1101,13 +1101,13 @@ mod decision_merge_tests {
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]
pub enum AlgoOrderStyle {
Vwap,
Twap,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]
pub enum OrderTimeInForce {
Day,
Ioc,
@@ -1136,7 +1136,7 @@ impl OrderTimeInForce {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, serde::Serialize)]
pub enum TargetPortfolioOrderPricing {
LimitPrices(BTreeMap<String, f64>),
AlgoOrder {
@@ -1146,7 +1146,7 @@ pub enum TargetPortfolioOrderPricing {
},
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, serde::Serialize)]
pub enum OrderIntent {
StockPool {
contract: Box<crate::stock_pool_execution::FrozenStockPoolIntent>,