From 0fa400ef100698125b271094100a6eae8404c1f5 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 11 Oct 2024 21:57:03 +0200 Subject: [PATCH] refactor watchlist endpoint --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index c5a4bd2..74a84c1 100755 --- a/app/main.py +++ b/app/main.py @@ -1166,7 +1166,7 @@ async def get_watchlist(data: GetWatchList, api_key: str = Security(get_api_key) combined_news.append(news_dict[0]) # Keys to always include in the combined results - always_include = ['symbol', 'name', 'price', 'changesPercentage', 'marketCap','eps','pe','score','revenue','netIncome','freeCashFlow'] + always_include = ['eps','pe','score','revenue','netIncome','freeCashFlow'] try: # Create a mapping of stock_screener_data based on symbol for fast lookup