Home / Market & alternative data

yfinance

Market & alternative data26,057 GitHub starsPython⏱ Commits today
Plain-language introduction · yfinance

Bring market data into Python for research.

yfinance is a community-maintained Python library that retrieves historical prices and other information through Yahoo Finance’s public interfaces. It is not an official Yahoo product and does not promise complete or real-time data.

Good fit: people comfortable using Python and a terminal for personal learning or research. Not a fit: those needing a no-setup charting site, guaranteed real-time data, or commercial data rights they have not verified.

Cost and rights: the source code uses Apache-2.0, but the code licence does not grant rights to redistribute or commercially use the underlying data. The project documentation says the Yahoo Finance API is intended for personal use; check Yahoo’s terms before using or sharing data. Connectivity, hardware and other services may incur costs.

First step (about 2 minutes): read the project’s usage disclaimer and Quick start in the official docs. If you want to try it on your computer, open a terminal and check python --version (or python3 --version). This check does not install software, require an account or involve payment. Installation, coding and data retrieval take additional time.

Before using data: availability, delay and coverage vary, and interfaces can change. The project states prices are adjusted by default (auto_adjust=True); check the adjustment, time and source before comparing results. Do not treat a fetched value as a verified live execution price.

Official materials checked 2026-11-05. We have not tested installation or a data download in this walkthrough.

Official documentation and Quick start ↗ · Project repository ↗

No project-authorized introductory video has been verified for this page. Use the official documentation and text above to get started.

Pythonic downloader for Yahoo! Finance market data

What it is

A Python library that fetches financial and market data from Yahoo! Finance's publicly available APIs, serving as a faster alternative to Pandas Datareader. It provides components for single and multiple ticker data, bulk market data downloads, live streaming via WebSocket, search, sector and industry information, and a screener with query building. The library suits researchers and educators who need a Pythonic way to pull market data into their workflows. Users should be aware that it is not affiliated with or endorsed by Yahoo, Inc., and that the underlying API is intended for personal, research, and educational use, so data usage rights must be checked against Yahoo!'s terms of use.

At a glance

RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.

Best forDevelopers
Used forData source, Data analysis
MarketsUS equities, Multi-market
StackPython
Learning curveEasy to start
Practical valueHigh practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceCommits today

Popularity snapshots

Daily snapshots of GitHub stars. Star changes are not a count of users or usage. Snapshots since 2026-11-02 (up to 30 days): first-to-last change +271 , latest 26,057. Gaps mean no snapshot was taken that day.

In the author's words

Yahoo! Finance market data downloader (+faster Pandas Datareader).

Open on GitHub ↗This week's trending toolsChinese page

Similar tools