From 860eff6796a7ef2f14710937a1a2d9c8b47c25bf Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 19 Jul 2024 15:28:02 +0200 Subject: [PATCH] update cron job --- app/main.py | 2 +- app/primary_cron_job.py | 2 +- requirements.txt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index c3f0c40..fff833e 100755 --- a/app/main.py +++ b/app/main.py @@ -2493,7 +2493,7 @@ async def get_options_plot_ticker(data:TickerData, api_key: str = Security(get_a #api endpoint not for website but for user @app.post("/raw-options-flow-ticker") -@limiter.limit("100/minute") +@limiter.limit("500/minute") async def get_raw_options_flow_ticker(data:OptionsFlowData, request: Request, api_key: str = Security(get_api_key)): ticker = data.ticker.upper() start_date = data.start_date diff --git a/app/primary_cron_job.py b/app/primary_cron_job.py index 6788e4c..99e9955 100755 --- a/app/primary_cron_job.py +++ b/app/primary_cron_job.py @@ -473,7 +473,7 @@ schedule.every(15).minutes.do(run_threaded, run_cron_heatmap).tag('heatmap_job') schedule.every(1).minutes.do(run_threaded, run_cron_quote).tag('quote_job') schedule.every(1).minutes.do(run_threaded, run_cron_price_alert).tag('price_alert_job') schedule.every(15).minutes.do(run_threaded, run_market_moods).tag('market_moods_job') -schedule.every(10).minutes.do(run_threaded, run_dark_pool_flow).tag('dark_pool_flow_job') +#schedule.every(10).minutes.do(run_threaded, run_dark_pool_flow).tag('dark_pool_flow_job') schedule.every(2).hours.do(run_threaded, run_fda_calendar).tag('fda_calendar_job') schedule.every(3).hours.do(run_threaded, run_json_job).tag('json_job') diff --git a/requirements.txt b/requirements.txt index 884ae86..8202d9a 100755 --- a/requirements.txt +++ b/requirements.txt @@ -35,4 +35,5 @@ ujson faker finnhub-python intrinio_sdk -openai \ No newline at end of file +openai +slowapi \ No newline at end of file