Skip to content

Commit

Permalink
Reorder this too.
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Feb 13, 2023
1 parent 01d361e commit fd0b259
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fd0b259

Please sign in to comment.