Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update-active-orders wasn't get called #465

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading