From fd0b259b4b71177ea60892300468df005733006b Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Mon, 13 Feb 2023 11:24:26 -0500 Subject: [PATCH] Reorder this too. --- thetagang/portfolio_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thetagang/portfolio_manager.py b/thetagang/portfolio_manager.py index b14651237..a5d416267 100644 --- a/thetagang/portfolio_manager.py +++ b/thetagang/portfolio_manager.py @@ -462,12 +462,12 @@ def manage(self): # Look for lots of stock that don't have covered calls self.check_for_uncovered_positions(account_summary, portfolio_positions) - self.check_puts(account_summary, portfolio_positions) - self.check_calls(account_summary, portfolio_positions) - # Refresh positions, in case anything changed from the orders above portfolio_positions = self.get_portfolio_positions() + self.check_puts(account_summary, portfolio_positions) + self.check_calls(account_summary, portfolio_positions) + # Wait for pending orders wait_n_seconds( lambda: any(