项目作者: tbeason

项目描述 :
Julia package for getting US Treasury yield curves
高级语言: Julia
项目地址: git://github.com/tbeason/DailyTreasuryYieldCurve.jl.git
创建时间: 2020-04-13T23:35:11Z
项目社区:https://github.com/tbeason/DailyTreasuryYieldCurve.jl

开源协议:Other

下载


DailyTreasuryYieldCurve.jl

Lifecycle
Build Status
codecov.io

Documentation
!---[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)](https://tbeason.github.io/DailyTreasuryYieldCurve.jl/dev)--

This Julia package does one thing: gets you daily yield curves from the US Treasury. The data is served via an XML feed, but this package cleans it up into a DataFrame so that you can use it.

Example

Add the package via the Julia Package Manager.

  1. ] add DailyTreasuryYieldCurve

It is easy to get the historical yield curves:

  1. using DailyTreasuryYieldCurve
  2. df_rates = getyieldcurves()
  3. df_realrates = getyieldcurves(;realrates=true)

You can also build a RateInterpolator which helps you interpolate/extrapolate using the data:

  1. using Dates
  2. nominal_itp = createRateInterpolator(df_rates)
  3. nominal_itp(45,Date(2020,4,13)) # gets the 45 day rate on 2020-4-13

For more information check the documentation.

Disclaimer

This package is provided as-is and without guarantees. I am not affiliated with the US Treasury. Please cite the original source when using this data.