Skip to content

Commit

Permalink
This is an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Sep 14, 2022
1 parent f90f4ae commit 7c27cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def roll_positions(self, positions, right, account_summary, portfolio_positions=

strike_limit = get_strike_limit(self.config, symbol, right)
if right.startswith("C"):
strike_limit = math.round(
strike_limit = round(
max(
[strike_limit or 0]
+ [
Expand All @@ -800,7 +800,7 @@ def roll_positions(self, positions, right, account_summary, portfolio_positions=
2,
)
elif right.startswith("P"):
strike_limit = math.round(
strike_limit = round(
min(
[strike_limit or sys.float_info.max]
+ [
Expand Down

0 comments on commit 7c27cb7

Please sign in to comment.