diff --git a/lumibot/brokers/alpaca.py b/lumibot/brokers/alpaca.py index 49df46749..7c5d0c68e 100644 --- a/lumibot/brokers/alpaca.py +++ b/lumibot/brokers/alpaca.py @@ -326,9 +326,6 @@ def _await_market_to_close(self, timedelta=None, strategy=None): The calling strategy; forwarded so pending orders can be processed the same way BacktestingBroker does. """ - # First, handle any orders waiting to be processed. - self.process_pending_orders(strategy=strategy) - # Seconds until the bell rings time_to_close = self.get_time_to_close() diff --git a/lumibot/strategies/_strategy.py b/lumibot/strategies/_strategy.py index 5d95523a2..532e0aaef 100644 --- a/lumibot/strategies/_strategy.py +++ b/lumibot/strategies/_strategy.py @@ -1660,8 +1660,8 @@ def should_send_account_summary_to_discord(self): else: time_since_last_account_summary = None - # Check if it has been at least 24 hours since the last account summary - if self.last_account_summary_dt is None or time_since_last_account_summary.total_seconds() >= 86400: # 24 hours + # Check if it has been at least 24 hours - 5mins since the last account summary + if self.last_account_summary_dt is None or time_since_last_account_summary.total_seconds() >= (86400 - 300): # Set the last account summary datetime to now self.last_account_summary_dt = now