Skip to content

Commit

Permalink
This value should be a float.
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Oct 21, 2021
1 parent 8280eac commit 5fccc5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,9 @@ def roll_positions(self, positions, right, portfolio_positions={}):
self.wait_for_midpoint_price(sell_ticker)

quantity = abs(position.position)
maximum_new_contracts = self.config["target"]["maximum_new_contracts"]
maximum_new_contracts = float(
self.config["target"]["maximum_new_contracts"]
)
dte = option_dte(position.contract.lastTradeDateOrContractMonth)
roll_when_dte = self.config["roll_when"]["dte"]
if dte > roll_when_dte:
Expand Down

0 comments on commit 5fccc5e

Please sign in to comment.