Skip to content

Parse variable notional/rates#1572

Merged
jodastephen merged 2 commits intomasterfrom
topic/vns
Oct 4, 2017
Merged

Parse variable notional/rates#1572
jodastephen merged 2 commits intomasterfrom
topic/vns

Conversation

@jodastephen
Copy link
Contributor

There are lots of variable elements in Strata swaps, but the most crucial are notionals and fixed rates. While in theory these could be different on each leg, in most cases they are not. Thus, this PR concentrates on the standard variable cases - notional and fixed rate affecting all legs equally.

.map(str -> LoaderUtils.parseDouble(str))
.ifPresent(notional -> stepBuilder.add(ValueStep.of(date, ValueAdjustment.ofReplace(notional))));
}
ImmutableList<ValueStep> vnotionals = stepBuilder.build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vNotionals rather than vnotionals

.map(str -> LoaderUtils.parseDoublePercent(str))
.ifPresent(fixedRate -> stepBuilder.add(ValueStep.of(date, ValueAdjustment.ofReplace(fixedRate))));
}
ImmutableList<ValueStep> vnotionals = stepBuilder.build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rates rather than notionals

@jodastephen jodastephen merged commit d92ac3c into master Oct 4, 2017
@jodastephen jodastephen deleted the topic/vns branch October 4, 2017 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants