Trivial change to utilize existing expiration variable when retrieving the options chain
This commit is contained in:
parent
9ce9067e5d
commit
97c5bd982f
@ -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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user