tr_yield_curve {treasury} | R Documentation |
Return the daily treasury par yield curve rates
Description
Return the daily treasury par yield curve rates
Usage
tr_yield_curve(date = NULL)
Arguments
date |
|
Value
A data.frame()
with columns date
, maturity
and rate
or
NULL
when no entries were found.
References
https://home.treasury.gov/treasury-daily-interest-rate-xml-feed
See Also
Other treasury data:
tr_bill_rates()
,
tr_long_term_rate()
,
tr_real_long_term()
,
tr_real_yield_curve()
Examples
# get data for a single month
tr_yield_curve("202201")
# or for the entire year
tr_yield_curve(2022)
[Package treasury version 0.1.0 Index]