Analysis updated 2026-05-18
Download historical stock prices and analyze them in Python for personal investment decisions.
Backtest trading strategies by fetching years of price data and running simulations.
Build a financial dashboard that pulls live company earnings, balance sheets, and market data.
Conduct academic research on stock market trends using clean, pandas-ready historical data.
| ranaroussi/yfinance | vanna-ai/vanna | hkuds/deeptutor | |
|---|---|---|---|
| Stars | 23,430 | 23,386 | 23,486 |
| Language | Python | Python | Python |
| Setup difficulty | easy | moderate | hard |
| Complexity | 2/5 | 3/5 | 4/5 |
| Audience | developer | pm founder | developer |
Figures from each repo's GitHub metadata at analysis time.
yfinance is a Python library that lets you download financial and market data from Yahoo Finance. The problem it solves is access: Yahoo Finance has a wealth of stock prices, historical data, company financials, and market information, but getting that data into a Python program for analysis or research normally requires navigating complex APIs. yfinance wraps those APIs into a simple, Pythonic interface, meaning it follows Python's conventions for how code should look and behave. With yfinance you can fetch historical price data for a single stock or multiple tickers at once, get company information like earnings and balance sheets, retrieve sector and industry data, search for quotes and news, and even stream live price updates via a WebSocket connection (a type of persistent connection that pushes updates in real time). The data comes back in a format compatible with pandas, the popular Python data-analysis library, making it ready for immediate analysis, charting, or feeding into financial models. You would use this for personal investment research, building financial analysis tools, backtesting trading strategies, or academic work involving stock market data. It is intended for research and educational use only, Yahoo Finance's own terms limit the API to personal use, and yfinance is not affiliated with or endorsed by Yahoo. The library is installed via pip and works with Python 2.7 and Python 3.6 or later.
Python library that downloads stock prices, company financials, and market data from Yahoo Finance with a simple, easy-to-use interface.
Mainly Python. The stack also includes Python, pandas, WebSocket.
Use freely for any purpose including commercial. Keep the notice and disclose changes to the patent grant.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.