liveBook · Manning

Historical data

As explained in Build a Robo-Advisor with Python (From Scratch)

Historical data is recorded information about past asset prices, dividends, and other market events.

Historical data records past asset prices and dividends so a portfolio backtester can replay daily valuation, income, and rebalancing decisions. section 13.4.2

For this use, retrieve split-adjusted Close prices rather than Adjusted Close prices. Keep dividends separate because they arrive as cash instead of being automatically reinvested. section 13.4.2

Historical data in a daily backtest

A Backtest iterates over each price date, marks holdings to current prices, adds dividend income, evaluates target weights, and applies rebalancing trades. The resulting portfolio history can compare strategies under the same market data. section 13.5

How Build a Robo-Advisor with Python (From Scratch) covers it

How deep it goes
Explains retrieval, date formatting, split treatment, dividend handling, and integration into a daily backtest, but not data-quality validation.
Examples
Uses yfinance Close-price and dividend series, daily holdings valuation, dividend-income calculation, and portfolio-weight computation.
What it assumes
Assumes Python data-frame familiarity and asset holdings, while demonstrating retrieval and formatting from zero within the backtesting workflow.
What you can do after
Build a historical-data pipeline with yfinance and supply it to a Python portfolio backtester.
How it connects
Connects portfolio rebalancing with dividends, stock splits, taxes, bid-ask spreads, and backtesting.

Also explained in

Compare how 2 books explain historical data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Robo-Advisor with Python (From Scratch). The section links point to the parts of the book it draws on.