Literature_Based_Research_1 / app_demo_stock_quotes.py
JBHF's picture
Rename app.py to app_demo_stock_quotes.py
40f70ed verified
#import streamlit as st
#
#x = st.slider('Select a value')
#st.write(x, 'squared is', x * x)
# -------------------
import streamlit as st
import yfinance as yf
st.title("Stocks App")
symbol = st.text_input("Enter a stock symbol", "AAPL")
if st.button("Get Quote"):
st.json(yf.Ticker(symbol).info)