Open-source project
Open-source project
yfinance
A popular Python wrapper for convenient access to Yahoo Finance market and company data.
- Provider
- Open-source community
- Access
- Open source
- Primary interface
- Python package
Open-source community
API / Skill
Research
Prototype price research quickly
It is an unofficial wrapper; endpoints and fields can change without notice.
Open source · Python package
Best used for
Prototype price research quickly
Download adjusted historical prices
Explore company metadata and events
Quick start
pip install yfinance
import yfinance as yf
stock = yf.Ticker('AAPL')
history = stock.history(period='1y', auto_adjust=True)
print(history.tail())A practical workflow
- 1Confirm the source and license
- 2Run the smallest useful request
- 3Validate fields and missing values
- 4Cache responsibly and document assumptions
Before you build
It is an unofficial wrapper; endpoints and fields can change without notice.
Frequently asked questions
What can yfinance do in a real workflow?
Prototype price research quickly Download adjusted historical prices Explore company metadata and events
What access and compatibility does yfinance require?
Open source. Python package.
What is the main implementation risk with yfinance?
It is an unofficial wrapper; endpoints and fields can change without notice.