liveBook · Manning

Yfinance

yfinance is a Python library for retrieving financial market data from Yahoo Finance through a programmatic interface.

How 2 Manning books explain it

Investing for Programmers

yfinance is a Python library that retrieves financial market data from Yahoo Finance and exposes it through a programmatic interface.

How it is used
Supports rapid Python-based collection and exploration of fundamental and technical financial data.
How deep it goes
Exposes ticker objects, statement DataFrames, company attributes, and derived ratios, but stops short of production-grade data guarantees.
Examples
Demonstrates Microsoft statements, selected reporting dates, ratio calculations, and multi-company comparisons.
What you can do after
Apply it via Python to retrieve company statements, inspect ratios, and assemble exploratory comparison DataFrames.

Read how Investing for Programmers explains yfinance →

Statistics Every Programmer Needs

yfinance is a Python library that retrieves market data from Yahoo Finance.

How it is used
Retrieves Yahoo Finance market data for financial analysis, visualization, and time-series modeling.
How deep it goes
Demonstrates ticker-based retrieval and basic closing-price preparation, stopping before model validation or statistical interpretation.
Examples
Uses AAPL, a reusable fetch_stock_data function, daily history, and a Close-only DataFrame.
What you can do after
Build it from scratch by importing yfinance, fetching ticker history, and preparing closing-price data for analysis.

Read how Statistics Every Programmer Needs explains yfinance →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.