Day 15 — What an OHLCV bar throws away
Friday, 21 August 2026 · Week 3 of 52 · Markets · Study day · 60 min
You are about to build a data store, and every design decision in it follows from knowing what a daily bar is a summary of and what it destroys.
What you should be able to do tonight
- Say what each of open, high, low, close and volume is a summary of, and name one thing you cannot recover from the five of them.
- Explain why the close in your file may not be a trade that happened at a price anyone paid.
Tasks 60 min
30 min Take one liquid name and one day of one-minute bars, and reconstruct the daily bar from them. Check open, high, low and volume reconcile. Then say what the daily bar cannot tell you that the minute bars can: the path, the time of the high, the intraday range distribution.
20 min Compare closes across sources for the same five tickers on the same day: yfinance against any second source you have. Where they differ, work out which is the consolidated close, which is the primary exchange close, and which is the auction print.
10 min Write the bar definition into the glossary, ending with the sentence about which of the five fields you would trust least and why.
Resources
- yfinance repo
- Alpaca — market data data
Deliverable
notebooks/day-015-bars.ipynb showing a daily bar reconstructed from minute bars, plus a five-ticker cross-source close comparison.
Checkpoint
Two vendors give different closes for the same stock on the same day and neither is wrong. Give two reasons.
Prepare for tomorrow
Ten minutes tonight so Day 16, Saturday, 22 August 2026 starts clean. This is what the evening email sends you.
Have both SPY files from last night to hand, adjusted and unadjusted, and check they cover the same dates.
Pull the dividend and split history for SPY from yfinance and save it separately.
Write down the number you get for SPY’s total return from 2005 to today using the adjusted series. Tomorrow you will get a different number and have to explain it.