Python Apache-2.0

yfinance

Download market data from Yahoo! Finance's API

R

ranaroussi

Dernière activité 27 sept. 2026
ranaroussi/yfinance

25,4 k

étoiles

3,4 k

forks

113

issues ouvertes

financial-datafix-yahoo-financemarket-datapandaspythonstock-datayahoo-financeyahoo-finance-api

Ce README est souvent en anglais.

Download market data from Yahoo! Finance's API

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

ranaroussi%2Fyfinance | Trendshift

yfinance offers a Pythonic way to fetch financial & market data from Yahoo!Ⓡ finance.


Important

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.**


Tip

THE NEW DOCUMENTATION WEBSITE IS NOW LIVE! 🤘

Visit ranaroussi.github.io/yfinance


Main components

  • Ticker: single ticker data
  • Tickers: multiple tickers' data
  • download: download market data for multiple tickers
  • Market: get information about a market
  • WebSocket and AsyncWebSocket: live streaming data
  • Search: quotes and news from search
  • Sector and Industry: sector and industry information
  • EquityQuery and Screener: build query to screen market

Installation

Install yfinance from PYPI using pip:

$ pip install yfinance

To install without curl_cffi for requests fallback, see Advanced ▸ Installation.


Star History Chart


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

Projets similaires

Financial Data Extraction from Investing.com with Python

Pythonfinancial-datahacktoberfesthistorical-data
Aalvarobartt
1,9 k étoiles378

Python library to download market data via Bloomberg, Eikon, Quandl, Yahoo etc.

Pythonarcticbloombergdukascopy
Ccuemacro
2,1 k étoiles222

Download live and historical data for Indian stock market

Pythonbhavcopy-downloaderjugaad-datanse-stock-data
Jjugaad-py
582 étoiles210