Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions lumibot/brokers/alpaca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this removed?


# Seconds until the bell rings
time_to_close = self.get_time_to_close()

Expand Down
4 changes: 2 additions & 2 deletions lumibot/strategies/_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

This comment was marked as resolved.

# Set the last account summary datetime to now
self.last_account_summary_dt = now

Expand Down
Loading