@@ -7104,7 +7104,7 @@ impl Strategy for PlatformExprStrategy {
|
|||||||
aiquant_available_cash = (aiquant_available_cash - spent).max(0.0);
|
aiquant_available_cash = (aiquant_available_cash - spent).max(0.0);
|
||||||
working_symbols.insert(symbol.clone());
|
working_symbols.insert(symbol.clone());
|
||||||
slot_working_symbols.insert(symbol.clone());
|
slot_working_symbols.insert(symbol.clone());
|
||||||
pending_buy_value += spent;
|
pending_buy_value += available_buy_cash;
|
||||||
if debug_daily_top_up {
|
if debug_daily_top_up {
|
||||||
daily_top_up_debug_notes.push(format!(
|
daily_top_up_debug_notes.push(format!(
|
||||||
"daily_top_up_fill date={} symbol={} requested_cash={:.4} filled_qty={} spent={:.4} remaining_cash={:.4}",
|
"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);
|
aiquant_available_cash = (aiquant_available_cash - spent).max(0.0);
|
||||||
rebalance_working_symbols.insert(symbol.clone());
|
rebalance_working_symbols.insert(symbol.clone());
|
||||||
slot_working_symbols.insert(symbol.clone());
|
slot_working_symbols.insert(symbol.clone());
|
||||||
rebalance_pending_buy_value += spent;
|
rebalance_pending_buy_value += buy_cash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user