Skip to content

Commit c18bdb2

Browse files
committed
Fix this derp
1 parent 17f175c commit c18bdb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thetagang/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ def maintain_high_water_mark(config: Dict[str, Any], symbol: str) -> bool:
351351

352352

353353
def get_max_dte_for(symbol: str, config: Dict[str, Any]) -> Optional[int]:
354-
if "max_dte" in config["symbols"][symbol]:
355-
return config["symbols"][symbol]["max_dte"]
356354
if symbol == "VIX" and "max_dte" in config["vix_call_hedge"]:
357355
return config["vix_call_hedge"]["max_dte"]
356+
if symbol in config["symbols"] and "max_dte" in config["symbols"][symbol]:
357+
return config["symbols"][symbol]["max_dte"]
358358

359359
return config["target"]["max_dte"]

0 commit comments

Comments
 (0)