add size to all historical flow data

This commit is contained in:
MuslemRahimi 2024-12-09 17:06:34 +01:00
parent 15399d2820
commit 46495462bb

View File

@ -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: