Trivial change to utilize existing expiration variable when retrieving the options chain

This commit is contained in:
moshferatu 2024-02-13 10:51:42 -08:00
parent 9ce9067e5d
commit 97c5bd982f

View File

@ -97,7 +97,7 @@ def _enter_iron_condor(entry_time: datetime):
symbol, sub_symbol = 'SPX', 'SPXW' symbol, sub_symbol = 'SPX', 'SPXW'
expiration = datetime.now() expiration = datetime.now()
options_chain = OptionsChain('$SPXW.X', datetime.now()) options_chain = OptionsChain('$SPXW.X', expiration)
logging.info(options_chain) logging.info(options_chain)
credit_target = float(getenv('CREDIT_TARGET')) credit_target = float(getenv('CREDIT_TARGET'))