ranaroussi/yfinance

Download market data from Yahoo! Finance's API

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 14 minutes ago
Added to GitGenius on September 2nd, 2026
Created on May 21st, 2017
Open Issues & Pull Requests: 104 (+0)
GitHub issues: Enabled
Number of forks: 3,411
Total Stargazers: 25,186 (+0)
Total Subscribers: 273 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.7 hours
Mean response time: 30.7 days
90th percentile: 28.0 days
Tracked items: 526

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 96% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 13% of issues opened in the past year have been closed. Three people close 88% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 27
New in 7 days: 2
Closed in 7 days: 2
Avg open age: 764 days
Stale 30+ days: 19
Stale 90+ days: 18

Recent activity

Opened in 7 days: 1
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (12)
  • yf prices (5)
  • Help wanted (3)
  • Yahoo spam (2)
  • Yahoo database (1)
  • documentation (1)

Detailed Description

yfinance is a Python library that downloads market data from Yahoo! Finance's API.

The library solves the problem of programmatically accessing financial market data by providing a Pythonic interface to Yahoo! Finance's publicly available APIs. It abstracts away the complexity of making direct API calls, allowing developers to fetch stock prices, historical data, and other market information with simple function calls. The tool works by querying Yahoo! Finance endpoints and returning data in formats suitable for analysis, particularly as pandas DataFrames.

Developers should choose yfinance for research, educational, and personal projects that require historical or current market data. It suits use cases ranging from simple stock price lookups to building financial analysis tools and backtesting systems. The library offers multiple access patterns: a Ticker class for single securities, a Tickers class for multiple securities, and a download function for batch operations. It also provides WebSocket and AsyncWebSocket components for live streaming data, market information retrieval, and equity screening capabilities. Users must be aware that yfinance is not affiliated with Yahoo! Inc. and relies on Yahoo's publicly available APIs, which are intended for personal use only. Developers should review Yahoo!'s terms of use before deploying the tool in production environments.

The project maintains active engagement with community contributions for bug investigation and code development. The tool includes multiple access patterns and streaming capabilities alongside traditional batch data retrieval. Development includes both synchronous and asynchronous interfaces for different integration scenarios. The library provides specialized components for market analysis, including sector and industry information retrieval and equity screening functionality.