Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Python
  3. yfinance

yfinance

Apache-2.0Python1.5.2

A Python library for downloading market data from Yahoo! Finance's public API.

Visit WebsiteGitHubGitHub
24.8k stars3.4k forks0 contributors

What is yfinance?

yfinance is a Python library that provides a programmatic interface to download financial market data from Yahoo! Finance. It solves the problem of accessing historical stock prices, company information, and market metrics through a clean Python API instead of manual web scraping or using complex financial data services.

Target Audience

Python developers, quantitative analysts, researchers, and students who need reliable access to financial market data for analysis, backtesting trading strategies, or educational projects.

Value Proposition

Developers choose yfinance because it offers a simple, well-documented Pythonic interface to Yahoo! Finance's data that's free to use, actively maintained by the community, and supports both historical data downloads and real-time streaming capabilities.

Overview

Download market data from Yahoo! Finance's API

Use Cases

Best For

  • Downloading historical stock price data for backtesting trading algorithms
  • Building financial dashboards that display market data
  • Research projects requiring bulk financial data collection
  • Educational tools for teaching financial analysis with Python
  • Creating custom stock screeners and market scanners
  • Developing quantitative finance models that need reliable price data

Not Ideal For

  • Projects requiring high-frequency, institutional-grade data feeds with guaranteed uptime
  • Commercial applications that need licensed financial data for compliance and legal safety
  • Systems where API stability and official vendor support are critical for production use
  • Real-time trading algorithms needing millisecond-precision data with low latency

Pros & Cons

Pros

Simple Pythonic Interface

Provides intuitive classes like Ticker and Tickers that abstract HTTP requests, allowing data fetching with minimal code, as shown in the clean API examples in the README.

Comprehensive Data Access

Supports historical prices, dividends, splits, real-time streaming via WebSocket, and market screening tools, covering most financial analysis needs without requiring multiple libraries.

Active Community Support

With high PyPI download counts and regular updates, the library is well-maintained by contributors, and the new documentation website indicates ongoing development.

Free and Open Source

Unlike paid services, yfinance is completely free to use and modify, lowering barriers for research and education, as emphasized in its Apache license.

Cons

Unofficial API Dependency

Relies on Yahoo's publicly available APIs which can change or break without notice, leading to unexpected issues, as warned in the legal disclaimers about non-affiliation.

Legal Usage Restrictions

The README explicitly states it's for personal use only per Yahoo's terms, making it risky for commercial applications without proper licensing.

Data Reliability Concerns

As a free service, data accuracy and timeliness are not guaranteed, which can impact sensitive financial decisions or backtesting results.

Frequently Asked Questions

Quick Stats

Stars24,787
Forks3,377
Contributors0
Open Issues102
Last commit14 hours ago
CreatedSince 2017

Tags

#quantitative-analysis#stock-data#financial-research#trading-tools#data-download#python#market-data#financial-data#yahoo-finance-api#stock-analysis#pandas#yahoo-finance

Built With

P
Python

Links & Resources

Website

Included in

Python290.8k
Auto-fetched 5 hours ago

Related Projects

openbbopenbb

Open Data Platform for analysts, quants and AI agents.

Stars70,947
Forks7,215
Last commit7 hours ago
PathwayPathway

Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.

Stars62,582
Forks1,668
Last commit20 hours ago
pandaspandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

Stars49,300
Forks20,165
Last commit15 hours ago
polarspolars

Extremely fast Query Engine for DataFrames, written in Rust

Stars39,082
Forks2,969
Last commit16 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub