diff --git a/iron_condor.py b/iron_condor.py index 9de8724..45a10d8 100644 --- a/iron_condor.py +++ b/iron_condor.py @@ -97,7 +97,7 @@ def _enter_iron_condor(entry_time: datetime): symbol, sub_symbol = 'SPX', 'SPXW' expiration = datetime.now() - options_chain = OptionsChain('$SPXW.X', datetime.now()) + options_chain = OptionsChain('$SPXW.X', expiration) logging.info(options_chain) credit_target = float(getenv('CREDIT_TARGET'))