6
$\begingroup$

Does anyone know if I can access interest rates series from the treasury using R? I tried yahoo! Finance and it doesn't seem to have this kind of information.

$\endgroup$
6
$\begingroup$

Quantmod package claims to support downloading data from Federal Reserve Bank of St. Louis Economic database, which contains plenty of rates time series. It should be pretty simple to get them into R using function getSymbols, in the same manner as

getSymbols("DEXJPUS",src="FRED") # FX rates from FRED
$\endgroup$
  • $\begingroup$ getSymbols("DSG10",src="FRED") # daily ten year treasury yld $\endgroup$ – rrg Dec 14 '16 at 18:08
3
$\begingroup$

Try the Fed's H15 series. Daily data is here, with links to historical: http://www.federalreserve.gov/releases/h15/update/

$\endgroup$
3
$\begingroup$

There are some interest rates accessible through the R package YieldCurve. I don't think they contain the latest available interest rates.

Another alternative is the package FRBData. Using the function GetInterestRates you can download various of the latest interest rates published by the FRB.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.