Prism Data Lab

Every analysis here ships its dataset and the code that produced every figure. Nothing on this site is investment advice.

Data Sources

FRED, SEC EDGAR, BLS, exchange feeds: how to pull them, parse them, and not misread them.

Data Sources is the plumbing behind every analysis here: where the numbers come from, how to pull them, and how not to misread them. Each note ships a script, and none of them needs an API key or a registration.

Start with pulling FRED series without an API key: FRED serves every series as a plain CSV, and the script downloads, merges and checks the coverage of any list of series ids. Where free market data actually comes from traces eight FRED series to the agency or exchange that produces them and computes each one's lag. Data revisions in FRED uses ALFRED vintages to show how far the first prints of payrolls and real GDP have moved since 2010, and why a final number is not final. For the Bureau of Labor Statistics, BLS data in Python pulls CPI components and payrolls from the keyless version 1 API, and the CPI basket explained reads the relative importance tables: shelter is 35.6 percent of the 2026 CPI-U basket and energy 6.4 percent, yet energy supplied 38 percent of the index's rise from December to August. For company filings, reading SEC EDGAR in Python covers submissions, full-text search and XBRL facts in one script.

The analyses built on these sources are in Data Analysis.