--- license: cc-by-4.0 language: - en pretty_name: CalcFi Open Data size_categories: - 100K **Live source + JSON API:** https://calcfi.app/developers > **Per-series HTML pages with charts:** https://calcfi.app/data > **OpenAPI 3.1 spec:** https://calcfi.app/api/insights/openapi.json This repo mirrors the read-only data exposed by [CalcFi](https://calcfi.app) so it can be consumed as a Frictionless Data Package, mirrored to dataset registries, and version-controlled with full git history. ## What's in here 34 series across 11 categories, each in its own subdir under [`datasets/`](datasets/): | Category | Series | |---|---| | Mortgage rates | 30-year-fixed, 15-year-fixed, 10-year-treasury | | Interest rates | federal-funds-rate, prime-rate, 2-year-treasury | | Inflation | cpi, pce | | Employment | unemployment-rate, labor-force-participation, avg-hourly-earnings | | Energy | crude-oil-wti, crude-oil-brent, us-regular-gas-price | | FX | usd-eur, usd-gbp, usd-jpy | | Crypto | bitcoin, ethereum, solana | | Deposit rates | savings-national-rate, money-market-national-rate, cd-3mo, cd-12mo, cd-60mo | | Credit | credit-card-apr, auto-loan-rate-48mo, personal-loan-rate-24mo | | Commodities | copper-price, corn-price | | Global (World Bank) | us-gdp-per-capita, world-inflation, world-unemployment, eurozone-gdp-per-capita | Every subdir contains: - `data.csv` — full history (date, value, unit), provenance headers preserved - `datapackage.json` — [Frictionless Data Package](https://frictionlessdata.io/) descriptor, DataHub-compatible - `README.md` — series-specific source, license, citation, and CalcFi live URL ## Quick start ```bash # Full mortgage rate history curl https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/30-year-fixed/data.csv # CPI history curl https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/cpi/data.csv # Latest single value (live API, daily-refreshed) curl https://calcfi.app/api/rates/30-year-fixed ``` ```python import pandas as pd url = "https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/30-year-fixed/data.csv" df = pd.read_csv(url, comment="#", parse_dates=["date"]) print(df.tail()) ``` ```r library(readr) df <- read_csv("https://raw.githubusercontent.com/jerehere/calcfi-open-data/main/datasets/30-year-fixed/data.csv", comment = "#") ``` ## Primary sources All values pass through verbatim from these official sources. No transformations or imputations are applied. - [**FRED**](https://fred.stlouisfed.org/) — Federal Reserve Economic Data (St. Louis Fed) - [**Freddie Mac PMMS**](https://www.freddiemac.com/pmms) — Primary Mortgage Market Survey - [**BLS**](https://www.bls.gov/) — Bureau of Labor Statistics (CPI, employment, wages) - [**BEA**](https://www.bea.gov/) — Bureau of Economic Analysis (PCE) - [**US Treasury**](https://home.treasury.gov/) — Treasury yields - [**FDIC**](https://www.fdic.gov/resources/bankers/national-rates/) — National Rates and Rate Caps - [**EIA**](https://www.eia.gov/) — Energy Information Administration (oil, gas) - [**Federal Reserve H.10**](https://www.federalreserve.gov/releases/h10/) — Foreign exchange rates - [**CoinGecko**](https://www.coingecko.com/) — Cryptocurrency spot prices - [**World Bank Open Data**](https://data.worldbank.org/) — GDP, world inflation, world unemployment - [**IMF Commodity Data**](https://www.imf.org/external/np/res/commod/index.aspx) — Copper, corn (via FRED) ## Refresh cadence A GitHub Actions workflow ([`.github/workflows/refresh.yml`](.github/workflows/refresh.yml)) runs daily at 06:00 UTC, pulls the latest history from CalcFi's read-only API, and commits any changes. Most series update at their natural cadence: - Daily: Treasury yields, FX, oil, crypto, fed funds - Weekly: 30Y / 15Y mortgage, gas price - Monthly: CPI, PCE, unemployment, hourly earnings, commodities - Quarterly: credit card APR, personal loan - Annual: World Bank series ## License This repository's structure, scripts, and README are released under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/). The data itself in `datasets/*/data.csv` is licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) — attribution requested. **How to attribute:** > Data via [CalcFi](https://calcfi.app), sourced from [primary source]. CC BY 4.0. Primary source terms also apply where data is mirrored from FRED, BLS, World Bank, etc. — consult the per-dataset `README.md` for the canonical source link. ## Why this exists Most personal-finance and macro data APIs are paid, rate-limited behind a credit card, or wrap a single primary source you could hit yourself. [CalcFi](https://calcfi.app) is a free personal-finance calculator platform that consumes these primary sources for its tools; this repo exposes the same data as a clean, version-controlled, Frictionless-compliant dataset bundle so it can be mirrored to DataHub, Hugging Face, Kaggle, and Zenodo. ## Visualizations built on this dataset **Interactive Hugging Face Spaces (Gradio, 10 total):** - [calcfi-mortgage-rate-explorer](https://huggingface.co/spaces/iizy/calcfi-mortgage-rate-explorer) — 30Y, 15Y mortgage + 10Y Treasury - [calcfi-inflation-wage-tracker](https://huggingface.co/spaces/iizy/calcfi-inflation-wage-tracker) — CPI + PCE + hourly earnings - [calcfi-yield-curve-spread](https://huggingface.co/spaces/iizy/calcfi-yield-curve-spread) — Fed Funds + 2Y + 10Y, inversion shading - [calcfi-fed-funds-cycle](https://huggingface.co/spaces/iizy/calcfi-fed-funds-cycle) — Fed Funds + Prime + credit-card APR - [calcfi-oil-gas-tracker](https://huggingface.co/spaces/iizy/calcfi-oil-gas-tracker) — WTI + Brent + US gasoline - [calcfi-fx-history](https://huggingface.co/spaces/iizy/calcfi-fx-history) — USD/EUR + USD/GBP + USD/JPY - [calcfi-commodity-inflation](https://huggingface.co/spaces/iizy/calcfi-commodity-inflation) — Copper + corn + CPI - [calcfi-gdp-per-capita](https://huggingface.co/spaces/iizy/calcfi-gdp-per-capita) — US + Eurozone GDP per capita - [calcfi-labor-market](https://huggingface.co/spaces/iizy/calcfi-labor-market) — Unemployment + LFP - [calcfi-consumer-credit](https://huggingface.co/spaces/iizy/calcfi-consumer-credit) — Credit card APR + personal loan rate **Long-form Observable notebooks:** - [Mortgage Spread Over Treasury (50 years)](https://observablehq.com/@iizy/mortgage-spread-over-treasury-50-years) - [Yield Curve Recession Indicator (2s/10s)](https://observablehq.com/@iizy/yield-curve-recession-indicator-2s-10s) - [Inflation vs Fed Target (2% History)](https://observablehq.com/@iizy/inflation-vs-fed-target-2-percent-history) **CodePen calculator demos (vanilla JS, MIT)** — [view all 6 in collection](https://codepen.io/collection/BawbdB): - [Compound Interest Calculator](https://codepen.io/Jere-S/pen/LEbyJQe) - [Mortgage Amortization Chart](https://codepen.io/Jere-S/pen/zxowJaw) - [Inflation-Adjusted Returns Calculator](https://codepen.io/Jere-S/pen/pvNPOZg) - [30Y Mortgage Rate History Chart (FRED Data)](https://codepen.io/Jere-S/pen/emBWLLg) — loads HF dataset live - [Retirement Corpus Projection](https://codepen.io/Jere-S/pen/ByQROqg) - [CPI vs Wages Tracker](https://codepen.io/Jere-S/pen/qEqmMQo) — loads HF dataset live **Live SQL endpoint (Datasette):** — full SQL query interface + JSON/CSV API over the same 117,956 observations **Cloudflare Pages mini-trackers (live FRED/BLS data, MIT):** - [Mortgage Rate Today](https://mortgage-rate-today.pages.dev/) — latest 30Y + 15Y Freddie Mac PMMS + 50yr chart - [CPI Tracker](https://cpi-tracker.pages.dev/) — live YoY inflation vs Fed 2% target - [Yield Curve Today](https://yield-curve-today.pages.dev/) — 2s/10s spread + inversion warning **Python package:** `pip install calcfidata` — — pandas-based client for all 34 series. **Static documentation site:** [calcfi-open-data-4a2bc1.gitlab.io](https://calcfi-open-data-4a2bc1.gitlab.io/) — full catalog, methodology, citation guide. **Author profiles (Person entity graph):** - [ORCID 0009-0000-0916-8684](https://orcid.org/0009-0000-0916-8684) - [Academia.edu — Jere K Salmisto](https://independent.academia.edu/JereS6) - [GitLab — jere.salmisto](https://gitlab.com/jere.salmisto) - [CodePen — Jere-S](https://codepen.io/Jere-S) - [Hugging Face — iizy](https://huggingface.co/iizy) ## Permanent DOIs - Figshare: [10.6084/m9.figshare.32332290](https://doi.org/10.6084/m9.figshare.32332290) - Zenodo (CERN-backed): [10.5281/zenodo.20302283](https://doi.org/10.5281/zenodo.20302283) - OSF: [10.17605/OSF.IO/PUMKT](https://doi.org/10.17605/OSF.IO/PUMKT) - Kaggle: [10.34740/kaggle/dsv/16356447](https://doi.org/10.34740/kaggle/dsv/16356447) - Mendeley Data: [10.17632/jsnwhy6vjn.1](https://doi.org/10.17632/jsnwhy6vjn.1) Mirror surfaces: [Hugging Face](https://huggingface.co/datasets/iizy/calcfi-open-data) (you are here) · [GitHub](https://github.com/jerehere/calcfi-open-data) · [GitLab](https://gitlab.com/jere.salmisto/calcfi-open-data). ## Mirroring this to other registries This repo is structured so each subdir under `datasets/` is a complete Frictionless Data Package. To publish on DataHub.io, point at this repo and set "Root Dir" to e.g. `datasets/30-year-fixed`. Repeat per dataset. For Hugging Face Datasets, Kaggle, Zenodo, or re3data — see [`docs/mirroring.md`](docs/mirroring.md) (TBD; PRs welcome). ## Contributing This is a mirror, not the source of truth. To propose data changes, request a new series, or correct a primary-source citation, open an issue or PR. For live calculator + API issues, see https://calcfi.app/about. ## Citation > Salmisto, J. (2026). CalcFi Open Data: 34 Free CC-BY Financial and Macro Time Series Mirrored from Primary Sources [Dataset]. Figshare. https://doi.org/10.6084/m9.figshare.32332290 ## Where else this dataset lives The same 117,956 observations are available across multiple query surfaces — pick the one that fits your workflow: ### Query surfaces - **[Datasette (live SQL)](https://calcfi-open-data.vercel.app/)** — browser SQL + JSON API + CSV export with 5 saved queries - **[data.world](https://data.world/jerehere/calcfi-open-data)** — SQL via data.world's browser interface, full SQLite + zip bundle download - **[DoltHub](https://www.dolthub.com/repositories/jerehere/calcfi-open-data)** — git-for-data, versioned tables, queryable from any MySQL client - **[MotherDuck](https://app.motherduck.com/share/92e4b6ab-46e0-42f4-8ebb-9e7ab22eae00)** — cloud DuckDB, attach with `ATTACH 'md:_share/calcfi_open_data_share/...'` ### Package mirrors - **[PyPI · calcfidata](https://pypi.org/project/calcfidata/)** — `pip install calcfidata` - **[Anaconda.org](https://anaconda.org/jeresalmisto/calcfidata)** — `conda install -c jeresalmisto calcfidata` - **[GitLab Package Registry](https://gitlab.com/jere.salmisto/calcfi-open-data/-/packages/60607126)** — enterprise GitLab mirror ### Documentation - **[Read the Docs](https://calcfidata.readthedocs.io/)** — full reference: install, quick start, series catalog, API, methodology, citation - **[GitLab Pages](https://calcfi-open-data-4a2bc1.gitlab.io/)** — documentation hub + methodology working paper ### Permanent DOIs (citable) - [Figshare](https://doi.org/10.6084/m9.figshare.32332290) · [Zenodo](https://doi.org/10.5281/zenodo.20302283) (CERN) · [OSF](https://doi.org/10.17605/OSF.IO/PUMKT) · [Kaggle](https://doi.org/10.34740/kaggle/dsv/16356447) · [Mendeley](https://doi.org/10.17632/jsnwhy6vjn.1) ### Source mirrors - **[Hugging Face](https://huggingface.co/datasets/iizy/calcfi-open-data)** (you are here) - **[GitHub](https://github.com/jerehere/calcfi-open-data)** - **[GitLab](https://gitlab.com/jere.salmisto/calcfi-open-data)** (canonical) ### Visualizations built on this data - **10 Hugging Face Spaces (Gradio):** [iizy on HF](https://huggingface.co/iizy) - **3 Observable notebooks:** [@iizy](https://observablehq.com/@iizy) - **6 CodePen demos:** [collection](https://codepen.io/collection/BawbdB) - **3 Cloudflare Pages micro-sites:** [mortgage-rate-today](https://mortgage-rate-today.pages.dev/) · [cpi-tracker](https://cpi-tracker.pages.dev/) · [yield-curve-today](https://yield-curve-today.pages.dev/) ### Live tools built on this data - **[calcfi.app](https://calcfi.app)** — 300+ free personal-finance calculators, every tool cited to a primary source > Maintained by [Jere Salmisto](https://orcid.org/0009-0000-0916-8684) — founder of [calcfi.app](https://calcfi.app). --- ## Distribution mesh — also available on **Static landing pages (8 mirrors):** - [GitLab Pages (canonical)](https://calcfi-open-data-4a2bc1.gitlab.io/) - [GitHub Pages](https://jeresalmisto.github.io/calcfi-open-data/) - [Cloudflare Pages](https://calcfi-open-data.pages.dev/) - [Codeberg Pages (EU)](https://jerehere.codeberg.page/calcfi-open-data/) - [Surge.sh](https://calcfi-open-data.surge.sh/) - [Netlify](https://calcfi-open-data.netlify.app/) - [AWS S3](https://calcfi-open-data.s3.us-east-1.amazonaws.com/index.html) - [Datasette (live SQL)](https://calcfi-open-data.vercel.app/) **Permanent DOIs (5):** - [Figshare 10.6084/m9.figshare.32332290](https://doi.org/10.6084/m9.figshare.32332290) - [Zenodo 10.5281/zenodo.20302283](https://doi.org/10.5281/zenodo.20302283) (CERN) - [OSF 10.17605/OSF.IO/PUMKT](https://doi.org/10.17605/OSF.IO/PUMKT) - [Kaggle 10.34740/kaggle/dsv/16356447](https://doi.org/10.34740/kaggle/dsv/16356447) - [Mendeley Data 10.17632/jsnwhy6vjn.1](https://doi.org/10.17632/jsnwhy6vjn.1) **Packages:** [PyPI `calcfidata`](https://pypi.org/project/calcfidata/) · [npm `calcfidata`](https://www.npmjs.com/package/calcfidata) · [Anaconda](https://anaconda.org/jeresalmisto/calcfidata) · [Go pkg](https://pkg.go.dev/gitlab.com/jere.salmisto/calcfi-open-data/go) · [Julia](https://github.com/jeresalmisto/CalcFiData.jl) · [dbt](https://github.com/jeresalmisto/dbt-calcfi-open-data) · [Read the Docs](https://calcfidata.readthedocs.io/) **Data catalogs / warehouses:** [BigQuery Public](https://console.cloud.google.com/bigquery/analytics-hub/discovery/projects/1099067620437/locations/us/dataExchanges/calcfi_open_data_exchange/listings/calcfi_open_data) · [data.world](https://data.world/jerehere/calcfi-open-data) · [DoltHub](https://www.dolthub.com/repositories/jerehere/calcfi-open-data) · [MotherDuck](https://app.motherduck.com/share/92e4b6ab-46e0-42f4-8ebb-9e7ab22eae00) **Repos:** [GitLab](https://gitlab.com/jere.salmisto/calcfi-open-data) · [GitHub](https://github.com/jeresalmisto/calcfi-open-data) · [Codeberg](https://codeberg.org/jerehere/calcfi-open-data) **Companion website:** [calcfi.app](https://calcfi.app) — free personal-finance calculators built on this dataset. **Author:** [Jere Salmisto](https://calcfi.app/about) · ORCID [0009-0000-0916-8684](https://orcid.org/0009-0000-0916-8684) License: CC BY 4.0 (data) · MIT (code)