QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Canadian Bond day count not implemented

Open mattknoxca opened this issue 10 years ago • 0 comments

Canadian-Conventions-in-FI-Markets.pdf

Page 17, section 6.1 of attached document. The "Otherwise" part (i.e., DCS > 365/f) is not implemented in QuantLib.

For example, for cusip 350863AC0 on 26-jan-2016 (one day before coupon payment), the trade date accrued interest should be 3.356507 = (0.5 - (184 - 183) / 365) * 6.75 . This matches the TRADE_DT_ACC_INT field on bloomberg, as well as the FTSE TMX bond index numbers on that day.

Actual365Fixed matches the correct accrued interest on all days where "DCS < 365/frequency"

mattknoxca avatar Apr 12 '16 12:04 mattknoxca