Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,6 @@ if "ticker" not in st.session_state or st.session_state.ticker != ticker:
|
|
| 37 |
@st.cache_data(show_spinner=False)
|
| 38 |
def load_historical_data(ticker):
|
| 39 |
try:
|
| 40 |
-
API_KEY = API_KEY
|
| 41 |
url = f"https://financialmodelingprep.com/api/v3/historical-rating/{ticker}?apikey={API_KEY}"
|
| 42 |
response = requests.get(url)
|
| 43 |
if response.status_code != 200:
|
|
@@ -71,7 +70,6 @@ def load_historical_data(ticker):
|
|
| 71 |
@st.cache_data(show_spinner=False)
|
| 72 |
def load_analyst_data(ticker):
|
| 73 |
try:
|
| 74 |
-
API_KEY = API_KEY
|
| 75 |
url = f"https://financialmodelingprep.com/api/v3/analyst-stock-recommendations/{ticker}?apikey={API_KEY}"
|
| 76 |
response = requests.get(url)
|
| 77 |
if response.status_code != 200:
|
|
|
|
| 37 |
@st.cache_data(show_spinner=False)
|
| 38 |
def load_historical_data(ticker):
|
| 39 |
try:
|
|
|
|
| 40 |
url = f"https://financialmodelingprep.com/api/v3/historical-rating/{ticker}?apikey={API_KEY}"
|
| 41 |
response = requests.get(url)
|
| 42 |
if response.status_code != 200:
|
|
|
|
| 70 |
@st.cache_data(show_spinner=False)
|
| 71 |
def load_analyst_data(ticker):
|
| 72 |
try:
|
|
|
|
| 73 |
url = f"https://financialmodelingprep.com/api/v3/analyst-stock-recommendations/{ticker}?apikey={API_KEY}"
|
| 74 |
response = requests.get(url)
|
| 75 |
if response.status_code != 200:
|