From 46495462bb58ee1a859c27fdd9a5a08cda8fd0c0 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 9 Dec 2024 17:06:34 +0100 Subject: [PATCH] add size to all historical flow data --- app/cron_options_historical_flow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/cron_options_historical_flow.py b/app/cron_options_historical_flow.py index a2ede5a..69bc9be 100644 --- a/app/cron_options_historical_flow.py +++ b/app/cron_options_historical_flow.py @@ -102,6 +102,7 @@ def process_day(date_str): item['sentiment'] = item['sentiment'].capitalize() item['execution_estimate'] = item['execution_estimate'].replace('_', ' ').title() item['tradeCount'] = item['trade_count'] + item['size'] = int(float(item['cost_basis'])/(float(item['price'])*100)) filtered_list.append(item) except: