You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if a real example, based on the discussion in that post, of fitting such a bond curve (preferably US Treasury, but other DM Sovereign bonds work too) using rateslib could be added to the cookbook in the future.
Also, can rateslib extract the zero curve and the forward curve from a fitted curve?
Thanks!
The text was updated successfully, but these errors were encountered:
A fitted Curve in rateslib is just a series of (date, discount factor) pairs interpolated with some specific interpolation scheme.
The plot function plots forward rates of any tenor by extracting the discount factors from that Curve and making the necessary calculations to derive the rates and show it on a chart. Curves in rateslib have a rate method which allows forward rates to be calculated.
The zero rate is technically probably an even easier calculation becuase it requires looking up just one discount factor per date instead of two, however it is not implemented because personally I have found little use for zero rates, but I imagine it would be quite an easy pull request.
I will bear the docs request in mind. Thanks for message.
Hi @attack68 ,
I've come across your excellent rateslib and books via this Quant Stackexchange post:
https://quant.stackexchange.com/questions/78698/bond-curve-fitting-practical-question
I wonder if a real example, based on the discussion in that post, of fitting such a bond curve (preferably US Treasury, but other DM Sovereign bonds work too) using rateslib could be added to the cookbook in the future.
Also, can rateslib extract the zero curve and the forward curve from a fitted curve?
Thanks!
The text was updated successfully, but these errors were encountered: