yfinance

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

   1 import yfinance
   2 data = yfinance.download("AMZN",start="2019-01-01",end="2020-02-12")
   3 d = data.to_dict()
   4 d['Close']

Python/yfinance (last edited 2020-02-13 14:28:24 by localhost)