CalcFi Open Data
34 free, CC BY 4.0 financial and macroeconomic time series mirrored from primary sources. Permanent DOIs. Live API. Six mirror surfaces.
What this is
A primary-source mirror of 34 financial and macro time series — mortgage rates, Treasury yields, Federal Funds, CPI, PCE, hourly earnings, unemployment, oil, gas, FX, GDP, deposit rates, and more. Every series is cited verbatim to the underlying primary source (FRED, BLS, Freddie Mac, US Treasury, BEA, World Bank). No smoothing, no imputation, no proprietary adjustments.
Built as the data layer behind the free personal-finance calculators at calcfi.app. Released as open data because the underlying primary sources are already public — wrapping them in a CC BY 4.0 license with a permanent DOI just makes them easier to cite and harder to break.
Quick start
Load any series directly from the Hugging Face mirror — example for the 30-year fixed mortgage rate:
https://huggingface.co/datasets/iizy/resolve/main/datasets/30-year-fixed/data.csv
Each CSV is prefixed with comment lines (# Source: ..., # License: ..., # Retrieved: ...) carrying provenance. The actual header is date,value,unit. In pandas: pd.read_csv(url, comment='#').
Visualisations
Three interactive Observable notebooks built on this dataset:
Mortgage-Treasury Spread (50 yr)
The 30Y mortgage rate vs the 10Y Treasury yield, 1976→today.
Yield Curve Recession Indicator
2s/10s spread with NBER recessions and Fed Funds overlay.
Inflation vs Fed 2% Target
CPI and PCE against the historical 2% target, since 1990.
Ten interactive Hugging Face Spaces (Gradio) build on the same data:
Mortgage Rate Explorer
30Y + 15Y + 10Y Treasury
Inflation & Wage Tracker
CPI + PCE + Hourly Earnings
Yield Curve Spread
Fed Funds + 2Y + 10Y
Fed Funds Cycle
Fed Funds + Prime + CC APR
Oil & Gas Tracker
WTI + Brent + US Gas
FX History
USD/EUR + USD/GBP + USD/JPY
Commodity Inflation
Copper + corn + CPI
GDP per Capita
US + Eurozone, annual
Labor Market
Unemployment + LFP
Consumer Credit
Credit-card APR + personal loan
Three Cloudflare Pages mini-trackers (live FRED/BLS data):
Mortgage Rate Today
Latest 30Y + 15Y Freddie Mac PMMS rate + 50yr chart
CPI Tracker
Live YoY inflation vs Fed 2% target line
Yield Curve Today
2s/10s spread + recession-inversion warning
Six CodePen calculator demos (vanilla HTML/CSS/JS, MIT) — view all in one collection:
Compound Interest
Principal + monthly contributions over years
Mortgage Amortization
Principal-vs-interest yearly split
Inflation-Adjusted Returns
Nominal vs real value over time
30Y Mortgage Rate History
1976→today, loads HF dataset live
Retirement Corpus
Build phase + safe-withdrawal drawdown
CPI vs Wages Tracker
Real-wage growth indexed to base year
License
All data CC BY 4.0 — free for any purpose with attribution to CalcFi and the named primary source. Notebook code and example scripts CC0 1.0.
Maintainer
Jere Salmisto (ORCID 0009-0000-0916-8684). Founder of calcfi.app. Reach out via the about page.