update cron job
This commit is contained in:
parent
c56bd4a42e
commit
75241ba448
@ -62,6 +62,7 @@ if len(total_symbols) < 100:
|
|||||||
|
|
||||||
print(len(total_symbols))
|
print(len(total_symbols))
|
||||||
|
|
||||||
|
|
||||||
def save_json(data, symbol):
|
def save_json(data, symbol):
|
||||||
os.makedirs(directory_path, exist_ok=True) # Ensure the directory exists
|
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
|
with open(f"{directory_path}/{symbol}.json", 'wb') as file: # Use binary mode for orjson
|
||||||
|
|||||||
@ -97,11 +97,11 @@ def run_options_jobs():
|
|||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
run_command(["python3", "cron_options_stats.py"])
|
run_command(["python3", "cron_options_stats.py"])
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
|
run_command(["python3", "cron_options_historical_volume.py"])
|
||||||
|
time.sleep(60)
|
||||||
run_command(["python3", "cron_options_hottest_contracts.py"])
|
run_command(["python3", "cron_options_hottest_contracts.py"])
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
run_command(["python3", "cron_options_single_contract.py"])
|
run_command(["python3", "cron_options_single_contract.py"])
|
||||||
time.sleep(60)
|
|
||||||
run_command(["python3", "cron_options_historical_volume.py"])
|
|
||||||
|
|
||||||
def run_fda_calendar():
|
def run_fda_calendar():
|
||||||
now = datetime.now(ny_tz)
|
now = datetime.now(ny_tz)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user