From c05bed04b9d748dcef77370cd871cd72fdf4a1ae Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 14 Feb 2024 08:29:37 -0800 Subject: [PATCH] Pass the entry time to the iron condor trade processes --- iron_condor_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iron_condor_scheduler.py b/iron_condor_scheduler.py index 5ebd386..a9dd06b 100644 --- a/iron_condor_scheduler.py +++ b/iron_condor_scheduler.py @@ -16,8 +16,8 @@ eastern_timezone = 'America/New_York' trade_filters = [VolatilityRegimeFilter()] -def enter_trade(): - job_process = Process(target = enter_iron_condor) +def enter_trade(entry_time: datetime): + job_process = Process(target = enter_iron_condor, args = [entry_time]) job_process.start() def connection_successful():