From bedff996a659f2e91b687c988a8c773589fdc52c Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 31 Mar 2025 22:47:18 +0200 Subject: [PATCH] bugfixing --- app/create_stock_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/create_stock_db.py b/app/create_stock_db.py index 94593ce..58c59f5 100755 --- a/app/create_stock_db.py +++ b/app/create_stock_db.py @@ -101,7 +101,7 @@ class StockDatabase: f"https://financialmodelingprep.com/api/v3/profile/{symbol}?apikey={api_key}", f"https://financialmodelingprep.com/api/v3/quote/{symbol}?apikey={api_key}", f"https://financialmodelingprep.com/stable/dividends?symbol={symbol}&apikey={api_key}", - f"https://financialmodelingprep.com/api/v4/historical/employee_count?symbol={symbol}&apikey={api_key}", + f"https://financialmodelingprep.com/stable/employee-count?symbol={symbol}&apikey={api_key}", f"https://financialmodelingprep.com/api/v3/historical-price-full/stock_split/{symbol}?apikey={api_key}", f"https://financialmodelingprep.com/api/v4/stock_peers?symbol={symbol}&apikey={api_key}", f"https://financialmodelingprep.com/stable/institutional-ownership/extract-analytics/holder?symbol={symbol}&year={year}&quarter={quarter}&apikey={api_key}", @@ -156,7 +156,7 @@ class StockDatabase: elif "dividends" in url: # Handle list response, save as JSON object fundamental_data['stock_dividend'] = ujson.dumps(parsed_data) - elif "employee_count" in url: + elif "employee-count" in url: # Handle list response, save as JSON object fundamental_data['history_employee_count'] = ujson.dumps(parsed_data) elif "stock_split" in url: