yfinance
Python library to download prices and history from Yahoo Finance; widely used for research and learning.
The go-to free data source for learning and personal projects.
Who it is for
Personal research and learning; not for a product or for serious trading.
Strengths
- Free and very popular (over 25,000 GitHub stars); active project.
Good to know
- Not affiliated with or endorsed by Yahoo.
- Its own documentation reminds you the Yahoo Finance API is for personal use only: read their terms.
- Since it is not an official API, it can stop working whenever Yahoo changes something.
Want a bot built on yfinance, or something similar?
We set it up, connect it to your accounts and keep it running.
Real-life uses
Correlation and regime dashboard
Rolling correlations, volatility regimes and trend state across the assets you trade.
Sources
Every fact on this page comes from these sources, checked on 2026-10-24. If something has changed, the source wins; tell us at contact@tradebotcheck.com.
- https://ranaroussi.github.io/yfinance/: legal disclaimer, personal use and research use
- https://github.com/ranaroussi/yfinance: Apache-2.0 license and activity
Alternatives in Market data
Binance public data
Free downloadable files with Binance's historical spot and futures market data (klines, trades, aggregated trades), published daily and monthly.
Alpha Vantage
Market data API for stocks, forex, crypto and technical indicators, with a free tier and per-minute premium plans.
CoinGecko API
Crypto data API (prices, market cap, history) with a free Demo plan.
EODHD
Global financial data API (end-of-day, intraday, fundamentals, news) covering stocks, ETFs, forex and crypto from many exchanges.