The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ParserError
Message: Error tokenizing data. C error: Expected 1 fields in line 7, saw 3
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 246, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 4196, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2533, in _head
return next(iter(self.iter(batch_size=n)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2711, in iter
for key, pa_table in ex_iterable.iter_arrow():
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2249, in _iter_arrow
yield from self.ex_iterable._iter_arrow()
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/csv/csv.py", line 198, in _generate_tables
for batch_idx, df in enumerate(csv_file_reader):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1843, in __next__
return self.get_chunk()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1985, in get_chunk
return self.read(nrows=size)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1923, in read
) = self._engine.read( # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 234, in read
chunks = self._reader.read_low_memory(nrows)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pandas/_libs/parsers.pyx", line 850, in pandas._libs.parsers.TextReader.read_low_memory
File "pandas/_libs/parsers.pyx", line 905, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
File "pandas/_libs/parsers.pyx", line 2061, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 7, saw 3Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
calcfi-open-data
Free, daily-refreshed financial and macro datasets — every series cited to a primary source, every CSV under CC BY 4.0.
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 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/:
| 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 preserveddatapackage.json— Frictionless Data Package descriptor, DataHub-compatibleREADME.md— series-specific source, license, citation, and CalcFi live URL
Quick start
# 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
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())
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 — Federal Reserve Economic Data (St. Louis Fed)
- Freddie Mac PMMS — Primary Mortgage Market Survey
- BLS — Bureau of Labor Statistics (CPI, employment, wages)
- BEA — Bureau of Economic Analysis (PCE)
- US Treasury — Treasury yields
- FDIC — National Rates and Rate Caps
- EIA — Energy Information Administration (oil, gas)
- Federal Reserve H.10 — Foreign exchange rates
- CoinGecko — Cryptocurrency spot prices
- World Bank Open Data — GDP, world inflation, world unemployment
- IMF Commodity Data — Copper, corn (via FRED)
Refresh cadence
A GitHub Actions workflow (.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. The data itself in datasets/*/data.csv is licensed CC BY 4.0 — attribution requested.
How to attribute:
Data via CalcFi, 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 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 — 30Y, 15Y mortgage + 10Y Treasury
- calcfi-inflation-wage-tracker — CPI + PCE + hourly earnings
- calcfi-yield-curve-spread — Fed Funds + 2Y + 10Y, inversion shading
- calcfi-fed-funds-cycle — Fed Funds + Prime + credit-card APR
- calcfi-oil-gas-tracker — WTI + Brent + US gasoline
- calcfi-fx-history — USD/EUR + USD/GBP + USD/JPY
- calcfi-commodity-inflation — Copper + corn + CPI
- calcfi-gdp-per-capita — US + Eurozone GDP per capita
- calcfi-labor-market — Unemployment + LFP
- calcfi-consumer-credit — Credit card APR + personal loan rate
Long-form Observable notebooks:
- Mortgage Spread Over Treasury (50 years)
- Yield Curve Recession Indicator (2s/10s)
- Inflation vs Fed Target (2% History)
CodePen calculator demos (vanilla JS, MIT) — view all 6 in collection:
- Compound Interest Calculator
- Mortgage Amortization Chart
- Inflation-Adjusted Returns Calculator
- 30Y Mortgage Rate History Chart (FRED Data) — loads HF dataset live
- Retirement Corpus Projection
- CPI vs Wages Tracker — loads HF dataset live
Live SQL endpoint (Datasette): https://calcfi-open-data.vercel.app/ — 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 — latest 30Y + 15Y Freddie Mac PMMS + 50yr chart
- CPI Tracker — live YoY inflation vs Fed 2% target
- Yield Curve Today — 2s/10s spread + inversion warning
Python package: pip install calcfidata — https://pypi.org/project/calcfidata/ — pandas-based client for all 34 series.
Static documentation site: calcfi-open-data-4a2bc1.gitlab.io — full catalog, methodology, citation guide.
Author profiles (Person entity graph):
- ORCID 0009-0000-0916-8684
- Academia.edu — Jere K Salmisto
- GitLab — jere.salmisto
- CodePen — Jere-S
- Hugging Face — iizy
Permanent DOIs
- Figshare: 10.6084/m9.figshare.32332290
- Zenodo (CERN-backed): 10.5281/zenodo.20302283
- OSF: 10.17605/OSF.IO/PUMKT
- Kaggle: 10.34740/kaggle/dsv/16356447
- Mendeley Data: 10.17632/jsnwhy6vjn.1
Mirror surfaces: Hugging Face (you are here) · GitHub · GitLab.
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 (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) — browser SQL + JSON API + CSV export with 5 saved queries
- data.world — SQL via data.world's browser interface, full SQLite + zip bundle download
- DoltHub — git-for-data, versioned tables, queryable from any MySQL client
- MotherDuck — cloud DuckDB, attach with
ATTACH 'md:_share/calcfi_open_data_share/...'
Package mirrors
- PyPI · calcfidata —
pip install calcfidata - Anaconda.org —
conda install -c jeresalmisto calcfidata - GitLab Package Registry — enterprise GitLab mirror
Documentation
- Read the Docs — full reference: install, quick start, series catalog, API, methodology, citation
- GitLab Pages — documentation hub + methodology working paper
Permanent DOIs (citable)
Source mirrors
- Hugging Face (you are here)
- GitHub
- GitLab (canonical)
Visualizations built on this data
- 10 Hugging Face Spaces (Gradio): iizy on HF
- 3 Observable notebooks: @iizy
- 6 CodePen demos: collection
- 3 Cloudflare Pages micro-sites: mortgage-rate-today · cpi-tracker · yield-curve-today
Live tools built on this data
- calcfi.app — 300+ free personal-finance calculators, every tool cited to a primary source
Maintained by Jere Salmisto — founder of calcfi.app.
- Downloads last month
- 70