Skip to content

Commit

Permalink
Merge pull request #465 from yakir4123/yakir/feat/update-active-orders
Browse files Browse the repository at this point in the history
fix: update-active-orders wasn't get called
  • Loading branch information
saleh-mir authored Jul 27, 2024
2 parents 349bc1c + 30a04c7 commit 08cb71c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jesse/modes/backtest_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 08cb71c

Please sign in to comment.