From 7119af4e34e37dc7517a80e27baf966026788cc3 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Tue, 13 Feb 2024 08:13:51 -0800 Subject: [PATCH] Retrieve entry times from environment variables --- iron_condor_scheduler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iron_condor_scheduler.py b/iron_condor_scheduler.py index d8af1a6..3f069dd 100644 --- a/iron_condor_scheduler.py +++ b/iron_condor_scheduler.py @@ -1,7 +1,6 @@ import schedule import time -from backtesting import best_entry_times from datetime import datetime from dotenv import load_dotenv from ibkr import Client @@ -33,8 +32,7 @@ if __name__ == '__main__': now = datetime.now(timezone(eastern_timezone)) - entry_times = sorted(best_entry_times()) - print(entry_times) + entry_times = getenv('ENTRY_TIMES').split(',') for entry_time in entry_times: schedule_time = datetime.strptime(entry_time, '%H:%M:%S').replace( year = now.year,