Stock Data Visulization & Analyzation Flask Server Google Chart

US. Stock Market Analyzation During COVID-19 Period


As we all know, Corona Virus has a strong global impact to different fileds, industries and all people. In this period, three circuit breakers happened within one month in U.S. stock market. This is a huge chanllenge for many corporations, but may also be an opportunity for investors. I'll show the Data Visulization and Analyzation of stock market in the following part.

Get Data from Yahoo Finance API

yfinance aimes to solve this problem by offering a reliable, threaded, and Pythonic way to download historical market data from Yahoo! finance.

Before using this API, there are some required software to install. Official Link: yfinance

To demonstrate the API, I print stock price data of Microsoft Corporation for last five days.

With close price and date, we can use do Visulization. Above, I use 'matplot' to draw a chart for 'BA' - Boeing's stock price tendancy

With Above code, you can easily draw the analyzation chart in your local computer. However, if you want to show dynamic chart in your web. Let's see another front end technology -- chartist.js. I'll explain this in the next chapter.