统一表达式策略成本风控来源

This commit is contained in:
boris
2026-07-02 22:59:45 +08:00
parent 25cc643f34
commit 564a2fb9b2
2 changed files with 7 additions and 6 deletions
@@ -1022,11 +1022,9 @@ impl PlatformExprStrategy {
}
fn cost_model(&self) -> ChinaAShareCostModel {
let mut model = if self.config.aiquant_transaction_cost {
ChinaAShareCostModel::aiquant_default()
} else {
ChinaAShareCostModel::default()
};
let mut model = ChinaAShareCostModel::from_trading_constraints(
self.config.risk_config.trading_constraints,
);
if let Some(value) = self.config.commission_rate {
model.commission_rate = value;
}