Skip to content
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

MultipleResetsSwap instrument and rate helper #2138

Open
eltoder opened this issue Jan 16, 2025 · 3 comments
Open

MultipleResetsSwap instrument and rate helper #2138

eltoder opened this issue Jan 16, 2025 · 3 comments

Comments

@eltoder
Copy link
Contributor

eltoder commented Jan 16, 2025

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.

@lballabio
Copy link
Owner

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?

@eltoder
Copy link
Contributor Author

eltoder commented Feb 6, 2025

Yes, for example CDOR used to have semiannual swaps on the 3M index.

@sdacek
Copy link
Contributor

sdacek commented Feb 6, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants