修复AiQuant部分成交补仓预算
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user