-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
The market convention in Canada is to quote a money market equivalent yield on bonds that are in their last coupon period #1430
Comments
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks. |
USD corporate bonds with less than 14 months till maturity are quoted using a similar convention. We use the same formula described in section 10.10.3 of this document (see page 49) -- the only difference being that the daycount used for USD corporate MME-yield is typically Actual/360 rather than Actual/365. It would be great if QuantLib supported this calculation natively. @qiubill My workaround for now has been to implement the calculation explicitly in python. If you have access to Bloomberg then you can verify the correctness of your own implementation using |
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks. |
Hi @qiubill or @erikhansenwong could you please post a quick code reproducing the desired behavior? Thanks! |
Hello @lballabio, how would you implement this requirement? With a new virtual member function in class |
our implementation is fairly simple, basically was divided into two scenario: one cash flow or multiple cash flow remaining. For the one cash flow remaining, it is super important: But for the multiple remaining cash flow case, it will be more complicated, especially for those quarterly or monthly coupon paid scenario, you need to have root_scalar function, but I cannot give you the implementation details, because I did not have the authorization from my company, the code belongs to the company. I believe you will be able to figure it out, and I don't think QuantLIb will implement it, because it is not generic feature. |
Canadian-Conventions-in-FI-Markets-Release-1-2-Feb-2015 (1).pdf |
The market convention in Canada is to quote a money market equivalent yield on bonds that are in their last coupon period. The formula below converts between price and simple interest yield on a bond with one cash flow remaining:
P + AI = (CP + Cm) / (1 + YME * DSM / 365)
where:
P = clean price
AI = actual/365 accrued interest
CP = 100 or call price
Cm = coupon payment at maturity
YME = money market equivalent yield
DSM = days from settlement date to maturity date
So I am not sure whether QuantLib has this kind of yield calculation support for the ql.FixedRateBond class, or there is a work around on. Please advise, thanks!!!
The text was updated successfully, but these errors were encountered: