treasury: Client for US Treasury XML Feed and Published Data

Download daily interest rates from the US Treasury XML feed. Leveraging <https://home.treasury.gov/treasury-daily-interest-rate-xml-feed>, this package serves as a wrapper, facilitating the retrieval of daily treasury rates across various categories, including par yield curves, treasury bills, long-term rates, and real yield curves. In addition, it provides access to the monthly published yield curve datasets, including the High Quality Market (HQM) corporate bond yield curve and the Treasury nominal and real coupon-issue (TNC, TRC) and breakeven inflation (TBI) curves.

Version: 0.7.0
Depends: R (≥ 4.1.0)
Imports: curl, data.table (≥ 1.16.0), httr2 (≥ 1.0.0), xml2
Suggests: ggplot2, knitr, readxl, scales, testthat (≥ 3.0.0)
Published: 2026-08-22
DOI: 10.32614/CRAN.package.treasury
Author: Maximilian Mücke ORCID iD [aut, cre]
Maintainer: Maximilian Mücke <muecke.maximilian at gmail.com>
BugReports: https://github.com/m-muecke/treasury/issues
License: MIT + file LICENSE
URL: https://m-muecke.github.io/treasury/, https://github.com/m-muecke/treasury
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: treasury results

Documentation:

Reference manual: treasury.html , treasury.pdf

Downloads:

Package source: treasury_0.7.0.tar.gz
Windows binaries: r-devel: treasury_0.6.0.zip, r-release: treasury_0.7.0.zip, r-oldrel: treasury_0.6.0.zip
macOS binaries: r-release (arm64): treasury_0.7.0.tgz, r-oldrel (arm64): treasury_0.7.0.tgz, r-release (x86_64): treasury_0.7.0.tgz, r-oldrel (x86_64): treasury_0.7.0.tgz
Old sources: treasury archive

Reverse dependencies:

Reverse suggests: ragtop

Linking:

Please use the canonical form https://CRAN.R-project.org/package=treasury to link to this page.