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
[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:
Downloads:
Reverse dependencies:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=treasury
to link to this page.