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
Implementation statusGuide reviewed · 2026-07
Implementation status

Open-source project

Expected result

Prototype price research quickly

Known failure mode

It is an unofficial wrapper; endpoints and fields can change without notice.

Compatibility

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

  1. 1Confirm the source and license
  2. 2Run the smallest useful request
  3. 3Validate fields and missing values
  4. 4Cache responsibly and document assumptions

Before you build

It is an unofficial wrapper; endpoints and fields can change without notice.

Open official documentation

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.