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

Allow notional exchange flags to be set independently of FX Reset. #1542

Merged
merged 8 commits into from
Aug 3, 2017

Conversation

brianweller89
Copy link
Contributor

The initial, intermediate and final notional exchanges are no longer automatically set to true when an FX reset is present. Clients must now explicitly specify if the exchanges should be present.

FpML supports independent setting of all three flags.

Specifically, XCCY swaps with no initial exchange are a traded instrument and could not be constructed in Strata previously.

* then the notional exchange flags will be set to true.
* then at least one of the notional exchange flags should be set to true.
* <p>
* If all notional exchange flags are false then setting the fx reset definition has no impact.
Copy link
Member

Choose a reason for hiding this comment

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

How about throwing an exception if all are false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

# Conflicts:
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/MultiCcyFormatTradeRowParser.java
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/ProductType.java
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/TradeParser.java
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/TradeParserUtils.java
#	irs/src/test/java/com/opengamma/margining/jscc/irs/trade/CcsFormatTradeParserTest.java
# Conflicts:
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/MultiCcyFormatTradeRowParser.java
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/ProductType.java
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/TradeParser.java
#	irs/src/main/java/com/opengamma/margining/jscc/irs/trade/TradeParserUtils.java
#	irs/src/test/java/com/opengamma/margining/jscc/irs/trade/CcsFormatTradeParserTest.java
@brianweller89 brianweller89 merged commit 0459df6 into master Aug 3, 2017
@brianweller89 brianweller89 deleted the topic/notional_schedule_fix branch August 3, 2017 09:47
@jodastephen jodastephen added this to the v1.4 milestone Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants