Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,15 +196,13 @@ def get_stock_info_alpha_vantage(ticker):
|
|
| 196 |
if button:
|
| 197 |
if not ticker:
|
| 198 |
st.error("Please provide a valid stock ticker.")
|
| 199 |
-
elif not alpha_vantage_api_key:
|
| 200 |
-
st.error("Please provide a valid Alpha Vantage API Key.")
|
| 201 |
elif not google_api_key:
|
| 202 |
st.error("Please provide a valid Google API Key.")
|
| 203 |
else:
|
| 204 |
try:
|
| 205 |
with st.spinner("Fetching and processing data..."):
|
| 206 |
# Get stock data from Alpha Vantage
|
| 207 |
-
history = get_stock_data_alpha_vantage(ticker,
|
| 208 |
|
| 209 |
st.subheader(f"{ticker} - {ticker}")
|
| 210 |
|
|
|
|
| 196 |
if button:
|
| 197 |
if not ticker:
|
| 198 |
st.error("Please provide a valid stock ticker.")
|
|
|
|
|
|
|
| 199 |
elif not google_api_key:
|
| 200 |
st.error("Please provide a valid Google API Key.")
|
| 201 |
else:
|
| 202 |
try:
|
| 203 |
with st.spinner("Fetching and processing data..."):
|
| 204 |
# Get stock data from Alpha Vantage
|
| 205 |
+
history = get_stock_data_alpha_vantage(ticker, "656HG6SEB317EFAB", period)
|
| 206 |
|
| 207 |
st.subheader(f"{ticker} - {ticker}")
|
| 208 |
|