From 30a04c774564d08e31e4288e7bd2cc07850d2977 Mon Sep 17 00:00:00 2001 From: Yakir Date: Sat, 27 Jul 2024 21:58:22 +0300 Subject: [PATCH] fix: update-active-orders wasn't get called --- jesse/modes/backtest_mode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jesse/modes/backtest_mode.py b/jesse/modes/backtest_mode.py index f722f42b2..5b19a6e73 100644 --- a/jesse/modes/backtest_mode.py +++ b/jesse/modes/backtest_mode.py @@ -359,6 +359,8 @@ def _step_simulator( r.symbol) r.strategy._execute() + store.orders.update_active_orders(r.exchange, r.symbol) + # now check to see if there's any MARKET orders waiting to be executed _execute_market_orders() @@ -886,6 +888,8 @@ def _execute_routes(candle_index: int, candles_step: int) -> None: ) r.strategy._execute() + store.orders.update_active_orders(r.exchange, r.symbol) + def _execute_market_orders(): store.orders.execute_pending_market_orders()