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

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 5 as of 2020-02-13 14:41:24
  • 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 from pandas._libs.tslibs.timestamps import Timestamp
   3 data = yfinance.download("AMZN",start="2019-01-01",end="2020-02-12")
   4 d = data.to_dict()
   5 d['Close'].key
   6 # for k in d['Close'].iterkeys(): print (k)
   7 d['Close'][Timestamp('2019-11-22 00:00:00')]
   8 d['Close'][Timestamp('2020-02-10 00:00:00')]
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01