Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ selected_stock = st.sidebar.selectbox("Choose a stock for analysis:", top_25_sto
|
|
30 |
# Function to fetch latest stock data using yfinance
|
31 |
def get_stock_data(ticker):
|
32 |
stock = yf.Ticker(ticker)
|
33 |
-
|
34 |
return stock_info
|
35 |
|
36 |
# Function to fetch latest news from Yahoo Finance or fallback to Google News RSS feed
|
|
|
30 |
# Function to fetch latest stock data using yfinance
|
31 |
def get_stock_data(ticker):
|
32 |
stock = yf.Ticker(ticker)
|
33 |
+
stock_info = stock.history(period="1d")
|
34 |
return stock_info
|
35 |
|
36 |
# Function to fetch latest news from Yahoo Finance or fallback to Google News RSS feed
|