= yfinance = * https://pypi.org/project/yfinance/ yfinance aimes to solve this problem by offering a reliable, threaded, and Pythonic way to download historical market data from Yahoo! finance. * pip install yfinance --user {{{#!highlight python import yfinance from pandas._libs.tslibs.timestamps import Timestamp data = yfinance.download("AMZN",start="2019-01-01",end="2020-02-12") d = data.to_dict() d['Close'].key # for k in d['Close'].iterkeys(): print (k) d['Close'][Timestamp('2019-11-22 00:00:00')] d['Close'][Timestamp('2020-02-10 00:00:00')] }}}