Support Fixed Initial Notional on MTM leg of XCCY swaps #1543
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
http://www.fpml.org/spec/fpml-5-6-1-wd-1/html/pretrade/schemaDocumentation/schemas/fpml-ird-5-6_xsd/complexTypes/Calculation/fxLinkedNotionalSchedule.html