Getting real-time stock market data and visualization

Goal

This post aims to introduce how to get real time stock market data using Yahoo finance API yahoo_fin and visualize it as candle chart using cufflinks. image

Reference

Libraries

In [70]:
import pandas as pd
from yahoo_fin import stock_info
from plotly.offline import plot, init_notebook_mode
init_notebook_mode()
import cufflinks as cf
%matplotlib inline
cf.set_config_file(offline=True)