update cron job

This commit is contained in:
MuslemRahimi 2025-01-12 16:33:29 +01:00
parent c56bd4a42e
commit 75241ba448
2 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,7 @@ if len(total_symbols) < 100:
print(len(total_symbols))
def save_json(data, symbol):
os.makedirs(directory_path, exist_ok=True) # Ensure the directory exists
with open(f"{directory_path}/{symbol}.json", 'wb') as file: # Use binary mode for orjson

View File

@ -97,11 +97,11 @@ def run_options_jobs():
time.sleep(60)
run_command(["python3", "cron_options_stats.py"])
time.sleep(60)
run_command(["python3", "cron_options_historical_volume.py"])
time.sleep(60)
run_command(["python3", "cron_options_hottest_contracts.py"])
time.sleep(60)
run_command(["python3", "cron_options_single_contract.py"])
time.sleep(60)
run_command(["python3", "cron_options_historical_volume.py"])
def run_fda_calendar():
now = datetime.now(ny_tz)