AI Card Bao WX.AICARDBAO.COM
Home / open source / yfinance
AI TOOL / #12940

yfinance

A simple Python script is all you need to download free financial data from Yahoo Finance using this popular library.

Introduction

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
[!NOTE] Prices are default adjusted for dividends (auto_adjust=True).

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

Visits:53 Updated:2026-12-04 AI tools

Related

Mici Academic To search for English literature, simply use Miciacao. We are dedicated to simplifying the process of obtaining English research papers and improving the efficiency of this task. With the help of AI technology, we assist researchers in discovering, interpreting, and studying over 300 million English-language scholarly articles. [Original] Video Tutorial on Regular Expressions This includes high-definition 4K video resources for the course, as well as organized source code, course notes in the form of mind maps, and related design drafts. Elo Dictionary “Eurol Dictionary” – an authoritative English dictionary app, an essential tool for anyone learning English. It offers real-person pronunciations of words, English translations, the ability to search for words across different apps, article editing services, grammar error corrections, word selection and searching functions, an expanded English vocabulary, tools for memorizing English words, English listening materials, and access to real-time English radio programs. Selected AI Product Set Zhuo Hao’s list of AI products encompasses some of the best AI applications available globally. Summary of audio and video content Audio and video analysis, subtitle extraction: Simply paste videos from Bilibili, Xiao Yu Zhou, Douyin, or local files, and get key points, subtitles, and mind maps in one click. In order to regain my abilities as soon as possible, I need to review mathematical analysis. It took me about half a month to skim through the first eleven chapters of “Complex Analysis: Visualized Methods” – of course, I skipped all the content marked with an asterisk as well as all the exercises. Overall, the book manages to achieve remarkable results with relatively little effort; many concepts that I previously didn’t understand suddenly became clear to me. However, in some parts, the approach taken was far from rigorous enough… which caused me some difficulties.