Getting data using api and yfinance package
This section is using Colaboratory to share codes, the following code is used for gathering data by using api and yfinance :https://colab.research.google.com/drive/13asoHzVS9Roc1OvDLG707p4XeKogNf5f?usp=sharing.
The first dataset is gdp, it measures the US gdp from 1970 to 2018
Second and third graph is two major stock market indicator DJi and NASDQ, for NASDQ, it takes measurement from 2002 to present, and for DJI here selected data from 1970 to present, to match the gkp sample.
Last graph is one that I get from TDamerite api, it is not beautiful and not as easy to use as my yfinance one, so here will only keep it here as a reference
Here use Quantl api and used it in my r studio to created a gdp growth graph for the past 80 years link to both r code and graph is http://haoming.georgetown.domains/rcode.html