Changelog
Source:NEWS.md
treasury (development version)
-
tr_auctions(),tr_announcements(), andtr_upcoming()were added to retrieve US Treasury marketable securities and auction results from the TreasuryDirect API. - The daily interest rate functions (
tr_yield_curve(),tr_bill_rate(),tr_long_term_rate(),tr_real_yield_curve(), andtr_real_long_term()) now attach anupdated_atattribute to the returned table with the feed’s last update time. -
tr_yield_curve()now correctly labels the 1.5-month maturity added to the Treasury feed in February 2025 (previously shown as1 _5month).
treasury 0.5.0
CRAN release: 2026-03-21
- Add optional caching of API responses via
options(treasury.cache = TRUE). Cached responses are stored for 1 day by default and can be customized withoptions(treasury.cache_max_age = seconds). Usetr_cache_dir()to find the cache location andtr_cache_clear()to clear it.
treasury 0.4.0
CRAN release: 2025-08-26
- Fixed bug in checking for {readxl} installation.
- Improved documentation.
- Renamed functions for consistency:
treasury 0.3.0
CRAN release: 2025-07-10
- Migration to data.table package. Internal data manipulation is now done using data.table and all functions return data.table objects.
treasury 0.2.0
CRAN release: 2024-07-05
- Better documentation.
- Support for Treasury High Quality Market (HQM) Corporate Bond Yield Curve data.
- Support for Treasury Nominal Coupon-Issue (TNC) Yield Curve data.
- Support for Treasury Real Coupon-Issue (TRC) Yield Curve data.
- Support for Treasury Breakeven Inflation Curve (TBI curve) data.