Skip to content

Conversation

@oszette
Copy link
Contributor

@oszette oszette commented Feb 9, 2026

Hi!

If you have created Ibor Coupons without specifying fixingDays, e.g. if you have specified fixing/reset schedule and created the leg through makeNonStandardIborLeg(), and have stubs, then the current code wont work.

One solution is to add fixingDays as a parameter to applyStubInterpolation(), and send in what is returned on line 1406:

Size fixingDays = floatData->fixingDays() == Null<Size>() ? index->fixingDays() : floatData->fixingDays();

Let me know what you think.

//Oskar

IborCoupon can be created without defining fixingDays, which will cause errors. To mitigate this, one solution is to be able to pass in fixingDays into applyStubInterpolation and use it if it is defined, if not you can try and retrieve it from the coupon (which still ofc can fail).
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

Successfully merging this pull request may close these issues.

1 participant