Spaces:
Sleeping
Sleeping
updated FMP_KEY var
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def fetch_historical_price_data(symbol: str, start_date: str) -> list[dict]:
|
|
| 36 |
if start_dt > today:
|
| 37 |
return [{"error": f"The start date '{start_date}' is in the future (after today {today})."}]
|
| 38 |
|
| 39 |
-
url = f"https://financialmodelingprep.com/stable/historical-price-eod/non-split-adjusted?symbol={symbol}&from={start_date}&apikey={
|
| 40 |
|
| 41 |
try:
|
| 42 |
response = requests.get(url)
|
|
|
|
| 36 |
if start_dt > today:
|
| 37 |
return [{"error": f"The start date '{start_date}' is in the future (after today {today})."}]
|
| 38 |
|
| 39 |
+
url = f"https://financialmodelingprep.com/stable/historical-price-eod/non-split-adjusted?symbol={symbol}&from={start_date}&apikey={FMP_KEY}"
|
| 40 |
|
| 41 |
try:
|
| 42 |
response = requests.get(url)
|