|
Download package/README.md from rowshelf/us-treasury-bundle: direct link, hf CLI and curl.
- Browser
- Download file 4.87 kB
-
https://huggingface.co/datasets/rowshelf/us-treasury-bundle/resolve/main/package/README.md
- Command line
-
hf download hf://datasets/rowshelf/us-treasury-bundle/package/README.md
-
curl -L -o README.md https://huggingface.co/datasets/rowshelf/us-treasury-bundle/resolve/main/package/README.md
4.87 kB
| # RowShelf — U.S. Treasury Historical Data Bundle (FREE) | |
| Version 1.0.1 · data retrieved 2026-11-24 (UTC) from the official U.S. Treasury Fiscal Data API. | |
| Federal debt (daily, monthly, annual since 1790), Treasury securities outstanding, average interest rates, interest expense, monthly receipts/outlays/deficit (MTS, with revision vintages), Treasury auction results since 1979 (without CUSIP identifiers) and official Treasury reporting exchange rates for ~265 currency series — normalized, typed, documented and QA-checked, in CSV and Parquet. | |
| **This is the FREE sample**: the same 9 tables and schema as the HISTORICAL edition, limited to roughly the last 24 months (debt_outstanding_annual: since 2000). The HISTORICAL edition adds the full history (back to 1790 / 1979 / 1993 / 2001), the raw API snapshot, the official metadata snapshot and the reproducible pipeline scripts (fetch/build/QA/update). | |
| ## Tables | |
| | table | frequency | rows | start | end | content | | |
| |---|---|---|---|---|---| | |
| | `debt_to_penny_daily` | daily (business days) | 514 | 2024-11-01 | 2026-11-20 | Total public debt outstanding of the U | | |
| | `debt_outstanding_annual` | annual (fiscal/historical year-end) | 27 | 2000-09-30 | 2026-09-30 | Historical total public debt outstanding at the end of each (fiscal) year since 1790 | | |
| | `securities_outstanding_monthly` | monthly (month-end) | 336 | 2024-11-30 | 2026-10-31 | MSPD Table 1: Treasury securities outstanding by marketable/non-marketable type and class, split public vs intragovernmental | | |
| | `avg_interest_rates_monthly` | monthly (month-end) | 401 | 2024-11-30 | 2026-10-31 | Average interest rates on outstanding marketable and non-marketable Treasury securities, by security, month-end | | |
| | `interest_expense_monthly` | monthly (month-end) | 912 | 2024-11-30 | 2026-10-31 | Monthly and fiscal-year-to-date interest expense on the public debt outstanding, by category/group/type | | |
| | `mts_receipts_outlays_deficit_monthly` | monthly | 24 | 2024-11-30 | 2026-10-31 | DERIVED from MTS Table 1: one row per calendar month with total receipts, total outlays and deficit/surplus of the U | | |
| | `mts_table_1_as_published` | monthly publication (vintages) | 492 | 2024-11-30 | 2026-10-31 | MTS Table 1 as published, one row per publication x line (monthly lines and year-to-date totals), with fiscal-year header resolved and period dates added | | |
| | `treasury_auctions` | event (per auction / CUSIP issue) | 864 | 2024-11-04 | 2026-10-22 | Treasury marketable securities auction announcements and results (bills, notes, bonds, TIPS, FRNs): offering, yields, bid-to-cover, bidder allocation | | |
| | `exchange_rates_quarterly` | quarterly (+ intra-quarter amendments) | 1,427 | 2024-12-31 | 2026-09-30 | Treasury Reporting Rates of Exchange: official rates used by U | | |
| ## Layout | |
| ``` | |
| csv/ one CSV per table (UTF-8, comma, header, ISO dates, empty = null) | |
| parquet/ same tables in Parquet (zstd), typed (date, int64, float64, string, bool) | |
| docs/ DATA_DICTIONARY, SOURCE_MANIFEST, QA_REPORT, SOURCE_NOTES, LICENSE_ATTRIBUTION, CHANGELOG (+ csv/json versions) | |
| SHA256SUMS.txt checksums of every file in this package | |
| ``` | |
| ## Quick start | |
| ```python | |
| import pandas as pd | |
| debt = pd.read_parquet('parquet/debt_to_penny_daily.parquet') | |
| mts = pd.read_csv('csv/mts_receipts_outlays_deficit_monthly.csv', parse_dates=['period_month_end']) | |
| fx = pd.read_parquet('parquet/exchange_rates_quarterly.parquet') | |
| eur = fx[(fx.country_currency_desc == 'Euro Zone-Euro') & ~fx.is_amendment] | |
| ``` | |
| ## Important notes | |
| - `deficit_usd`: positive = deficit, negative = surplus (Treasury convention: outlays − receipts). | |
| - `securities_outstanding_monthly` is in **millions of USD**; everything else is in USD. | |
| - `exchange_rates_quarterly` = foreign currency units per 1 USD, official Treasury reporting rates (not market rates). `is_amendment=True` rows are intra-quarter amendments. | |
| - `mts_receipts_outlays_deficit_monthly` uses the latest published vintage of each month; first-print and every revision are in `mts_table_1_as_published`. | |
| - `treasury_auctions` includes announced auctions whose results are not yet published (result fields null). It contains no CUSIP identifiers (6 fields removed in v1.0.1, see docs/CHANGELOG.md); rows are identified by (auction_date, issue_date, security_type, security_term, series). | |
| - Source anomalies are reported in QA_REPORT.md and left exactly as published (e.g. Debt to the Penny 2025-08-04 components differ from the total by USD 10bn; Zimbabwe-Dollar rate 0.0 on 2019-09-30). | |
| - Nothing is interpolated, filled or estimated. | |
| ## License | |
| Original data: U.S. Treasury Fiscal Data — may be copied, modified, redistributed and used commercially; RowShelf adds no restriction on it. RowShelf compiled and normalized the bundle. Not affiliated with or endorsed by the U.S. Treasury. See LICENSE_ATTRIBUTION.md. | |