Spaces:
Sleeping
Sleeping
Update app.py
Browse files21 unmodified lines2223242526272821 unmodified linesticker = yf.Ticker(symbol)df = ticker.history(start=start_date, end=end_date, auto_adjust=True)return f"""Today's Stock data for {symbol}:Open : {df['Open'].iloc[0]} High : {df['High'].iloc[0]} Low : {df['Low'].iloc[0]} Close : {df['Open'].iloc[0] Volume : {df['Volume'].iloc[0]}"""except Exception as e:return f"Error fetching stock data for {symbol}: {str(e)}"21 unmodified lines2223242526272821 unmodified linesticker = yf.Ticker(symbol)df = ticker.history(start=start_date, end=end_date, auto_adjust=True)return f"""Today's Stock data for {symbol}:Open : {df['Open'].iloc[0]} High : {df['High'].iloc[0]} Low : {df['Low'].iloc[0]} Close : {df['Close'].iloc[0]} Volume : {df['Volume'].iloc[0]}"""except Exception as e:return f"Error fetching stock data for {symbol}: {str(e)}"
app.py+1-1