Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse variable notional/rates #1572

Merged
merged 2 commits into from
Oct 4, 2017
Merged

Parse variable notional/rates #1572

merged 2 commits into from
Oct 4, 2017

Conversation

jodastephen
Copy link
Member

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.

None yet

2 participants