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.


start= datetime.datetime(2020,1,1)
determines the start to end time of measurement of stock data
def get_data(ticker):
df =
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 Complete Code


No comments yet