From d859e0fd97ba8aef4325d463ab4503bf181c46e8 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 5 Feb 2025 15:01:29 +0100 Subject: [PATCH] update primary job --- app/primary_cron_job.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/primary_cron_job.py b/app/primary_cron_job.py index 4460432..670bf40 100755 --- a/app/primary_cron_job.py +++ b/app/primary_cron_job.py @@ -73,11 +73,12 @@ def run_market_flow(): if week <= 4 and 8 <= hour < 20: run_command(["python3", "cron_market_flow.py"]) -def run_unusual_activity(): +def run_options_stats(): now = datetime.now(ny_tz) week = now.weekday() hour = now.hour - if week <= 4 and 9 <= hour <= 16: + if week <= 4 and 9 <= hour <= 17: + run_command(["python3", "cron_option_stats.py"]) run_command(["python3", "cron_unusual_activity.py"]) def run_dark_pool_level(): @@ -102,7 +103,6 @@ def run_options_jobs(): run_command(["python3", "cron_options_historical_volume.py"]) run_command(["python3", "cron_options_hottest_contracts.py"]) run_command(["python3", "cron_implied_volatility.py"]) - run_command(["python3", "cron_options_stats.py"]) run_command(["python3", "cron_options_oi.py"]) ''' run_command(["python3", "cron_options_gex_dex.py"]) @@ -422,7 +422,7 @@ schedule.every(3).hours.do(run_threaded, run_press_releases).tag('press_release_ schedule.every(5).minutes.do(run_threaded, run_push_notifications).tag('push_notifications_job') -schedule.every(10).minutes.do(run_threaded, run_unusual_activity).tag('unusual_activity_job') +schedule.every(10).minutes.do(run_threaded, run_options_stats).tag('options_stats_job') schedule.every(5).minutes.do(run_threaded, run_market_flow).tag('market_flow_job') schedule.every(5).minutes.do(run_threaded, run_list).tag('stock_list_job')