us-treasury-bundle / package /docs /SOURCE_MANIFEST.md
rowshelf's picture
Add official RowShelf FREE sample (batch 3, samples03). Official archive files unchanged; packaging card includes SHA-256 and UTM product link.
2a2e214 verified
|
Raw History Blame Contribute Delete
5.97 kB
# SOURCE_MANIFEST
Product `rowshelf_us_treasury` v1.0.1. All data retrieved from the official U.S. Treasury Fiscal Data REST API (no scraping). Retrieval timestamps are UTC.
## Source endpoints
| source | dataset | endpoint | retrieved (UTC) | rows | API total-count | record_date min | record_date max | update freq. |
|---|---|---|---|---|---|---|---|---|
| debt_to_penny | Debt to the Penny | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny | 2026-11-24T19:08:45Z | 8439 | 8439 | 1993-04-01 | 2026-11-20 | Daily |
| debt_outstanding | Historical Debt Outstanding | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_outstanding | 2026-11-24T19:08:45Z | 238 | 238 | 1790-01-01 | 2026-09-30 | Annually |
| mspd_table_1 | U.S. Treasury Monthly Statement of the Public Debt (MSPD) - Table 1 Summary of Treasury Securities Outstanding | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/debt/mspd/mspd_table_1 | 2026-11-24T19:08:46Z | 4687 | 4687 | 2001-01-31 | 2026-10-31 | Monthly |
| avg_interest_rates | Average Interest Rates on U.S. Treasury Securities | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/avg_interest_rates | 2026-11-24T19:08:46Z | 5041 | 5041 | 2001-01-31 | 2026-10-31 | Monthly |
| interest_expense | Interest Expense on the Public Debt Outstanding | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/interest_expense | 2026-11-24T19:08:47Z | 7397 | 7397 | 2010-05-31 | 2026-10-31 | Monthly |
| mts_table_1 | Monthly Treasury Statement (MTS) - Table 1 Summary of Receipts, Outlays, and the Deficit/Surplus | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/mts/mts_table_1 | 2026-11-24T19:08:48Z | 3162 | 3162 | 2015-03-31 | 2026-10-31 | Monthly |
| auctions_query | Treasury Securities Auctions Data | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/auctions_query | 2026-11-24T19:08:55Z | 11154 | 11154 | 1979-11-15 | 2026-10-30 | Daily |
| rates_of_exchange | Treasury Reporting Rates of Exchange | https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/rates_of_exchange | 2026-11-24T19:08:58Z | 19151 | 19151 | 2001-03-31 | 2026-09-30 | Quarterly |
## Output tables (real coverage)
| table | source | frequency | rows HISTORICAL | start | end | rows FREE | FREE rule | FREE start | FREE end |
|---|---|---|---|---|---|---|---|---|---|
| debt_to_penny_daily | debt_to_penny | daily (business days) | 8439 | 1993-04-01 | 2026-11-20 | 514 | `record_date >= 2024-11-01` | 2024-11-01 | 2026-11-20 |
| debt_outstanding_annual | debt_outstanding | annual (fiscal/historical year-end) | 238 | 1790-01-01 | 2026-09-30 | 27 | `record_date >= 2000-01-01` | 2000-09-30 | 2026-09-30 |
| securities_outstanding_monthly | mspd_table_1 | monthly (month-end) | 4687 | 2001-01-31 | 2026-10-31 | 336 | `record_date >= 2024-11-01` | 2024-11-30 | 2026-10-31 |
| avg_interest_rates_monthly | avg_interest_rates | monthly (month-end) | 5041 | 2001-01-31 | 2026-10-31 | 401 | `record_date >= 2024-11-01` | 2024-11-30 | 2026-10-31 |
| interest_expense_monthly | interest_expense | monthly (month-end) | 7397 | 2010-05-31 | 2026-10-31 | 912 | `record_date >= 2024-11-01` | 2024-11-30 | 2026-10-31 |
| mts_receipts_outlays_deficit_monthly | mts_table_1 | monthly | 157 | 2013-10-31 | 2026-10-31 | 24 | `period_month_end >= 2024-11-01` | 2024-11-30 | 2026-10-31 |
| mts_table_1_as_published | mts_table_1 | monthly publication (vintages) | 2882 | 2015-03-31 | 2026-10-31 | 492 | `record_date >= 2024-11-01` | 2024-11-30 | 2026-10-31 |
| treasury_auctions | auctions_query | event (per auction / CUSIP issue) | 11154 | 1979-10-31 | 2026-10-22 | 864 | `auction_date >= 2024-11-01` | 2024-11-04 | 2026-10-22 |
| exchange_rates_quarterly | rates_of_exchange | quarterly (+ intra-quarter amendments) | 19150 | 2001-03-31 | 2026-09-30 | 1427 | `record_date >= 2024-10-01` | 2024-12-31 | 2026-09-30 |
## Transformations applied
1. Every source table downloaded in full via `page[size]=10000` pagination with a deterministic sort; row count verified against the API `total-count`.
2. Source string `"null"` converted to a real null (empty CSV cell / Parquet null). No value is imputed, interpolated, forward-filled or corrected.
3. Types assigned from the official metadata data types: DATE -> date, CURRENCY/NUMBER/PERCENTAGE -> float64, INTEGER/YEAR/QUARTER -> int64, STRING -> string.
4. Columns renamed to explicit snake_case names with unit suffixes; redundant calendar parts (record_calendar_year/quarter/month/day) dropped because they are derivable from the ISO date; fiscal year/quarter kept.
5. Units are never mixed: MSPD values stay in millions of USD (`_musd`), all other amounts in USD (`_usd`), rates in percent (`_pct`), FX in foreign currency units per 1 USD.
6. One table per source/frequency; derived MTS monthly series kept separate from the as-published vintages.
7. Excluded fields (v1.0.1): `auctions_query`: `announcemtd_cusip`, `corpus_cusip`, `cusip`, `original_cusip`, `tint_cusip_1`, `tint_cusip_2`. Removed before writing the raw snapshot and every output; no substitute identifier. Row counts are unaffected (the API total-count above still matches).
Table-specific (from `build_log.json`):
- `avg_interest_rates_monthly`: security_desc 'TotalMarketable' -> 'Total Marketable' (1 row)
- `exchange_rates_quarterly`: dropped exact duplicate measure row: 2018-12-31 Czech Republic-Koruna rate=21.941 src_line_nbr=46
- `mts_table_1_as_published`: dropped 280 'FY YYYY' header rows (no values) after resolving them into fiscal_year; dropped volatile parent_id/classification_id and print-layout codes (kept in raw snapshot)
- `mts_receipts_outlays_deficit_monthly`: derived: month lines of every MTS publication grouped by period month; latest publication (max record_date) kept; no interpolation