QuantLib
QuantLib copied to clipboard
Canadian Bond day count not implemented
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"