-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexFixedRateBond computes Price and YTM as non-inflated #349
Comments
OK, so coming back to the pricing issue. For the inflation linked bonds I have seen, pricing is done in real space and the indexed up prices are determined in post. As an example, the specification for the EC0013374 Swedish inflation linked bond posted above is: bond = IndexFixedRateBond( # EC0013374
effective=dt(1997, 12, 1),
termination=dt(2028, 12, 1),
index_method="daily",
index_fixings=NoInput(0),
index_lag=3,
index_base=245.1,
spec="se_gb",
fixed_rate=3.5
) If you price this with a yield of 1.787 you get a clean-unindexed price of
As the Bloomberg buy ticket shows the index value at settlement is 415.892 and the ratio is 1.696825785. The analogue bond The digital method: the Index products are not well documented with many examples so I appreciate the issue - the working case is useful. |
Also when you construct the |
For this particular issue i re-ran it with today's value for I'll update once this is resolved. |
OK, I looked more closely. The Solver returns nan becuase the If you add
|
In the following example I've priced two bonds, a TIPS 07/28 and it's fake nominal equivalent.
The inflation fixings are hard coded for convenience.
The future cashflows of the TIPS are well inflated and the NPV adjusts accordingly but the YTM should also be way higher if it was the case.
Probably the price() and ytm() function are non-inflated by default.
Also when trying to analize the inflation risk of the TIPS, i can't get the solver to work as it fails with the following.
I tried passing it the already solved sofr curve and its solver, with ZCIS rates computed from my estimated future fixings.
Do you have guidelines on what can cause the solver to fail ?
Let me know if you need more information to reproduce this.
Thank for your time,
The text was updated successfully, but these errors were encountered: