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

Added correct treatment of the spot fx rate settlement in code dealing with cross currency swaps #54

Merged
merged 7 commits into from May 31, 2021

Conversation

irigopouPR
Copy link
Contributor

The small correction affects the implementation of CrossCcyBasisSwapHelper::initializeDates().
On the line
swap_ = boost::shared_ptr(new CrossCcyBasisSwap( ...
the argument before the last was 0.0 and I replaced it with spreadOnFlatLeg_.
This must be so because only the 5th paySpread argument must be zero.
Otherwise the spreadOnFlatLeg_ would be initialized but nowhere used!

Added the element spotFXSettleDate_ that allows for a more accurate npv calculation that takes into account a non-trivial settlement date of the spot fx rate.
Added the element spotFXSettleDateVec_ that allows for a more accurate npv calculation that takes into account possible non-trivial settlement dates of the spot fx rates.
Added code in support of the newly added element spotFXSettleDateVec_ that allows for a more accurate npv calculation that takes into account possible non-trivial settlement dates of the spot fx rates.
@irigopouPR irigopouPR changed the title Fixed small bug in CrossCcyBasisSwapHelper::initializeDates() Added correct treatment of the spot fx rate settlement in code dealing with cross currency swaps Aug 9, 2020
@QuaternionRisk QuaternionRisk merged commit 78ca3e2 into OpenSourceRisk:master May 31, 2021
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.

None yet

2 participants