QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Swap - equivalent rate for floating leg when reset frequency and payment frequency is not equal

Open xli2045 opened this issue 4 years ago • 5 comments

I'm trying to price a swap, and one of the floating legs is referring to 1M LIBOR. The trade start date and valuation date are both March-16, 2022, and the pays quarterly. Theoretically, the equivalent rate should be calculated based on the compounded rate after each reset. I can see that from the 2nd payment onwards, the equivalent rate is as expected; however for the 1st payment, it is simply using the fixing rate from before the accrual start date, instead of the compounded rate. Can anyone please check and see if this is an error?

image

image

xli2045 avatar Apr 20 '22 14:04 xli2045

Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it.

boring-cyborg[bot] avatar Apr 20 '22 14:04 boring-cyborg[bot]

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Jun 20 '22 02:06 github-actions[bot]

Hello, may you post the code you're using to initialize the swap? Thanks!

lballabio avatar Jun 20 '22 07:06 lballabio

Float-Float Swap - Quantlib Test.zip

Hello, may you post the code you're using to initialize the swap? Thanks!

Please see the python notebook attached. Thank you.

xli2045 avatar Jun 20 '22 16:06 xli2045

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Aug 20 '22 02:08 github-actions[bot]