You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QuantLib now has MultipleResetsCoupon and MultipleResetsLeg, but it does not provide a ready-made instrument that uses these or a rate helper that can be used to bootstrap a curve using such instruments. That should be easy to add, but I have a question -- should these be added as new classes or as an option into VanillaSwap (or another existing instrument)?
The downside of the former is more code duplication, for example, I'd probably need a MakeMultipleResetsSwap class copy-pasted from MakeVanillaSwap, MultipleResetsSwapRateHelper copy-pasted from SwapRateHelper etc. The downside of the latter is that it will break code that expects VanillaSwap to always have IborCoupons.
The text was updated successfully, but these errors were encountered:
Hi—I don't know if I would create a specific instrument. It's easy enough to call MultipleResetsLeg and pass the resulting leg to the generic Bond or Swap constructor. As for the helper, are these swaps actually quoted?
Hi -- there are CNY swaps with weekly resets averaged into quarterly payments. Also, I believe that USD LIBOR tenor basis swaps historically used to compound up resets on the shorter tenor leg so that both legs had the same payment frequency.
QuantLib now has MultipleResetsCoupon and MultipleResetsLeg, but it does not provide a ready-made instrument that uses these or a rate helper that can be used to bootstrap a curve using such instruments. That should be easy to add, but I have a question -- should these be added as new classes or as an option into VanillaSwap (or another existing instrument)?
The downside of the former is more code duplication, for example, I'd probably need a MakeMultipleResetsSwap class copy-pasted from MakeVanillaSwap, MultipleResetsSwapRateHelper copy-pasted from SwapRateHelper etc. The downside of the latter is that it will break code that expects VanillaSwap to always have IborCoupons.
The text was updated successfully, but these errors were encountered: