diff --git a/app/main.py b/app/main.py index 12ed9d5..374b481 100755 --- a/app/main.py +++ b/app/main.py @@ -467,7 +467,7 @@ async def get_stock(data: TickerData, api_key: str = Security(get_api_key)): res_json = orjson.dumps(res) compressed_data = gzip.compress(res_json) redis_client.set(cache_key, compressed_data) - redis_client.expire(cache_key, 60*5) + redis_client.expire(cache_key, 60*3) return StreamingResponse( io.BytesIO(compressed_data), diff --git a/app/primary_cron_job.py b/app/primary_cron_job.py index 8be39d4..3f4d9f8 100755 --- a/app/primary_cron_job.py +++ b/app/primary_cron_job.py @@ -352,7 +352,7 @@ schedule.every(30).minutes.do(run_threaded, run_dividend_list).tag('dividend_lis schedule.every(15).minutes.do(run_threaded, run_cron_market_news).tag('market_news_job') schedule.every(30).minutes.do(run_threaded, run_cron_industry).tag('industry_job') -schedule.every(10).minutes.do(run_threaded, run_one_day_price).tag('one_day_price_job') +schedule.every(7).minutes.do(run_threaded, run_one_day_price).tag('one_day_price_job') schedule.every(15).minutes.do(run_threaded, run_cron_heatmap).tag('heatmap_job') diff --git a/fastify/app.js b/fastify/app.js index a6d919b..d171342 100755 --- a/fastify/app.js +++ b/fastify/app.js @@ -201,8 +201,8 @@ fastify.register(async function (fastify) { ) { connection.socket.send( JSON.stringify({ - bp: jsonData.bp?.toFixed(2), - ap: jsonData.ap?.toFixed(2), + bp: jsonData.bp, + ap: jsonData.ap, lp: jsonData.lp?.toFixed(2), type: jsonData.type, time: formatTimestampNewYork(jsonData?.t),