修复执行价索引和平台表达式回退
This commit is contained in:
@@ -4694,7 +4694,11 @@ where
|
||||
);
|
||||
continue;
|
||||
}
|
||||
if candidate_gross <= cash + 1e-6 {
|
||||
let candidate_cost = self
|
||||
.cost_model
|
||||
.calculate(snapshot.date, OrderSide::Buy, candidate_gross)
|
||||
.total();
|
||||
if candidate_gross + candidate_cost <= cash + 1e-6 {
|
||||
break;
|
||||
}
|
||||
budget_block_reason = Some("insufficient cash after fees");
|
||||
|
||||
Reference in New Issue
Block a user