|
From: Tom A. <tw...@ur...> - 2023-01-30 11:54:00
|
Hello, I have a rather basic question. OvernightIndexedCouponPricer::averageRate has a special case for when "the last fixing is not used for its full period": https://github.com/lballabio/QuantLib/blob/38bf3fa4a728d82a9975b2ae5fb86eee0433f3ce/ql/cashflows/overnightindexedcoupon.cpp#L107 Is this for when the coupon ends on a day that is not a business day? Looking at how the list of dates is put together (in the telescopic case), that seems to be the only reason the last date would not be the end of the accrual period: https://github.com/lballabio/QuantLib/blob/38bf3fa4a728d82a9975b2ae5fb86eee0433f3ce/ql/cashflows/overnightindexedcoupon.cpp#L188 If so, out of interest, does this ultimately flow from ISDA rules for OISs, or is this just financial common sense? Thanks, tom -- I would advise students to pay more attention to the fundamental ideas rather than the latest technology. The technology will be out-of-date before they graduate. Fundamental ideas never get out of date. However, what worries me about what I just said is that some people would think of Turing machines and Goedel's theorem as fundamentals. I think those things are fundamental but they are also nearly irrelevant. -- David Parnas |