cpatino10 commited on
Commit
6535778
·
verified ·
1 Parent(s): e71d7d4

updated FMP_KEY var

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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={FMP_API_KEY}"
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)