MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 4 as of 2020-02-13 14:32:14
  • Python
  • yfinance

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

   1 import yfinance
   2 data = yfinance.download("AMZN",start="2019-01-01",end="2020-02-12")
   3 d = data.to_dict()
   4 d['Close'].key
   5 for k in d['Close'].iterkeys(): print (k)
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01