Coders Packet

Stock Market Data Visualization of renowed stocks from Ticker and Stooq using DASH

By Syeed Chowdhury Jahin

Stock information is collected in two ways from ticker and from Stooq of renowned stocks like amazon, FB, Tata Steel,Pfizer, Moderna ,Microsoft,Twitter

Dash has been imported for applying dashboard which is an in built library for using dashboards. yfinance has been imported to read yahoo data. plotly has been imported to build the graph.

Firstly,

start= datetime.datetime(2020,1,1)
end=datetime.datetime(2021,12,31)
determines the start to end time of measurement of stock data
def get_data(ticker):
df = yf.download(ticker)
df.reset_index(inplace=True)
df=df[["Date","Close"]]
is used to get the ticker values of each stock for date and closing prices which i plottedb throughout x and y axis through code
def build_graphticker(df):
return px.line(x=df["Date"],y=df["Close"])
app= dash.Dash(external_stylesheets=[dbc.themes.MINTY] declares the app using minty theme
app.layout=dbc.Container() gives the app its bootstrap components
if __name__=='__main__':
app.run_server(debug=True, port=8000)is used to run the app

Download project

Reviews Report

Submitted by Syeed Chowdhury Jahin (Syeed)

Download packets of source code on Coders Packet