Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Y

yfinance

> DevOps
Open source

Download market data from Yahoo! Finance's API

24.9K stars0 likes5 views
WebsiteGitHub

About

Download market data from Yahoo! Finance's API

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! 🤘

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.

yfinance relies on the community to investigate bugs and contribute code. Here's how you can help.



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

Issues· 108 open

View all issuesOpen on GitHub
  • #2855

    Cannot convert non-finite values (NA or inf)

    Updated Sep 21, 2026
  • #1083

    Lack of Freq String for Daily Prices

    enhancementyf pricesHelp wantedUpdated Sep 8, 2026
  • #1871

    Inconsistent floating point values in history method

    Updated Sep 4, 2026
  • #1647

    efficiently download info for multiple symbols

    Updated Aug 24, 2026
  • #2449

    [0.2.59] curl_cffi won't compile

    Updated Aug 24, 2026
  • #2463

    [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.')

    Updated Aug 24, 2026
  • #265

    Feature request: Fetch "Statistics" data for a ticker

    enhancementUpdated Aug 24, 2026
  • #1852

    Lacking ability to pass verify parameter with proxy.

    Updated Aug 24, 2026
  • #1585

    Last hour of trade is missing in Saudi stock market

    Updated May 18, 2026
  • #1737

    Getting the data for revenue & earning

    Updated May 17, 2026

> Tags

Pythonfinancial-datafix-yahoo-financemarket-datapandas

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理