Skip to content

Fix QL_REQUIRE for physical-settled FX Forward#167

Merged
pcaspers merged 1 commit intoOpenSourceRisk:masterfrom
haoxiaofeng:master
Aug 10, 2023
Merged

Fix QL_REQUIRE for physical-settled FX Forward#167
pcaspers merged 1 commit intoOpenSourceRisk:masterfrom
haoxiaofeng:master

Conversation

@haoxiaofeng
Copy link
Copy Markdown
Contributor

Matching the meaning of the QL_REQUIRE expression with the exception description for physical-settled Fx Forward trade:

QL_REQUIRE(arguments_.isPhysicallySettled || arguments_.payDate <= arguments_.fixingDate || arguments_.fxIndex != nullptr, "If pay date (" << arguments_.payDate << ") is strictly after fixing date (" << arguments_.fixingDate << "), an FX Index must be given for a cash-settled FX Forward.");

@pcaspers
Copy link
Copy Markdown
Collaborator

pcaspers commented Aug 3, 2023

Thanks @haoxiaofeng! Will merge this shortly.

@pcaspers pcaspers merged commit 19a9418 into OpenSourceRisk:master Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants