Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support Fixed Initial Notional on MTM leg of XCCY swaps #1543
The fixed initial notional is specified at the FxResetCalculation level, as it is only applicable for legs with Fx Reset.
When resolving payment schedule the fixed notional amount is used for the first period (jf present)
FxResetCalculation.resolve() returns an Optional FxReset, to account for the fact that the fx reset may not be present for the initial period. The index of the period is also passed in order to ensure that the override is only applied to the first period.
This changes models the FpML concept of initialValue on fxLinkedNotionalSchedule: