아래 링크 클릭하시면 보실 수 있습니다.

https://share.streamlit.io/seongjae-yoo/streamlit_ai_bigdata_project/main/stock.py

Streamlit App

코딩 소스

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import imp
import yfinance as yf
import streamlit as st
import pandas as pd 

st.write("""
# Simple Stock Price App (2000-01-01 ~ 2022-01-28)
Shown are the stock **closing price** and ***volume*** of Google!
""")

#define the ticker symbol
tickerSymbol = 'GOOGL'
#get data on this ticker
tickerData = yf.Ticker(tickerSymbol)
#get the historical prices for this ticker
tickerDf = tickerData.history(period='1d', start='2000-01-01', end='2022-01-28')
# Open	High	Low	Close	Volume	Dividends	Stock Splits

st.write("""
## Closing Price
""")
st.line_chart(tickerDf.Close)
st.write("""
## Volume Price
""")
st.line_chart(tickerDf.Volume)

st.write("""
# Copyright 2022. SeongJae Yu all rights reserved. (유성재 포토폴리오)
""")


Meta Info

Categories:

Published At:

Modified At:

Leave a comment