Download market data from Yahoo! Finance's API
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! 🤘
Ticker: single ticker dataTickers: multiple tickers' datadownload: download market data for multiple tickersMarket: get information about a marketWebSocket and AsyncWebSocket: live streaming dataSearch: quotes and news from searchSector and Industry: sector and industry informationEquityQuery and Screener: build query to screen marketInstall yfinance from PYPI using pip:
$ pip install yfinanceTo install without curl_cffi for requests fallback, see Advanced ▸ Installation.
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.
Please drop me a note with any feedback you have.
Ran Aroussi
Cannot convert non-finite values (NA or inf)
Lack of Freq String for Daily Prices
Inconsistent floating point values in history method
efficiently download info for multiple symbols
[0.2.59] curl_cffi won't compile
[0.2.59] CertificateVerifyError('Failed to perform, curl: (60) SSL certificate problem: self signed certificate in certificate chain. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.')
Feature request: Fetch "Statistics" data for a ticker
Lacking ability to pass verify parameter with proxy.
Last hour of trade is missing in Saudi stock market
Getting the data for revenue & earning