Skip to content

hjlgood/yfinance

Repository files navigation

Download market data from Yahoo! Finance's API

*** IMPORTANT LEGAL DISCLAIMER ***


Yahoo!, Y!Finance, and Yahoo! finance are registered trademarks of Yahoo, Inc.

yfinance is not affiliated, endorsed, or vetted by Yahoo, Inc. It's an open-source tool that uses Yahoo's publicly available APIs, and is intended for research and educational purposes.

You should refer to Yahoo!'s terms of use (here, here, and here) for details on your rights to use the actual data downloaded. Remember - the Yahoo! finance API is intended for personal use only.


Python version PyPi version PyPi status PyPi downloads CodeFactor Star this repo Follow me on twitter

yfinance offers a threaded and Pythonic way to download market data from Yahoo!Ⓡ finance.

Main Features

  • Ticker module: Class for accessing single ticker data.
  • Tickers module: Class for handling multiple tickers.
  • download Efficiently download market data for multiple tickers.
  • Sector and Industry modules : Classes for accessing sector and industry information.
  • Market Screening: EquityQuery and Screener to build query and screen the market.
  • Caching and Smart Scraping

Documentation

The official documentation is available on ranaroussi.github.io/yfinance

Installation

Install yfinance using pip:

$ pip install yfinance --upgrade --no-cache-dir

With Conda.

To install with optional dependencies, replace optional with: nospam for caching-requests, repair for price repair, or nospam,repair for both:

$ pip install "yfinance[optional]"

Required dependencies , all dependencies.

The list of changes can be found in the changelog

Developers: want to contribute?

yfinance relies on community to investigate bugs and contribute code. Developer guide: ranaroussi#1084


Legal Stuff

yfinance is distributed under the Apache Software License. See the LICENSE.txt file in the release for details.

AGAIN - yfinance is not affiliated, endorsed, or vetted by Yahoo, Inc. It's an open-source tool that uses Yahoo's publicly available APIs, and is intended for research and educational purposes. You should refer to Yahoo!'s terms of use (here, here, and here) for details on your rights to use the actual data downloaded.


P.S.

Please drop me a note with any feedback you have.

Ran Aroussi

About

Download market data from Yahoo! Finance's API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%