From 97c5bd982f574e38998c64cba4a03786d0f45d2a Mon Sep 17 00:00:00 2001 From: moshferatu Date: Tue, 13 Feb 2024 10:51:42 -0800 Subject: [PATCH] Trivial change to utilize existing expiration variable when retrieving the options chain --- iron_condor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'))