修复AiQuant部分成交补仓预算

This commit is contained in:
boris
2026-06-20 17:24:30 +08:00
parent 1a4936d250
commit 7ce28e6d0f
@@ -7104,7 +7104,7 @@ impl Strategy for PlatformExprStrategy {
aiquant_available_cash = (aiquant_available_cash - spent).max(0.0);
working_symbols.insert(symbol.clone());
slot_working_symbols.insert(symbol.clone());
pending_buy_value += available_buy_cash;
pending_buy_value += spent;
if debug_daily_top_up {
daily_top_up_debug_notes.push(format!(
"daily_top_up_fill date={} symbol={} requested_cash={:.4} filled_qty={} spent={:.4} remaining_cash={:.4}",
@@ -7292,7 +7292,7 @@ impl Strategy for PlatformExprStrategy {
aiquant_available_cash = (aiquant_available_cash - spent).max(0.0);
rebalance_working_symbols.insert(symbol.clone());
slot_working_symbols.insert(symbol.clone());
rebalance_pending_buy_value += buy_cash;
rebalance_pending_buy_value += spent;
}
}
}