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

AnalyticEuropeanEngine to support multi-curve pricing #170

Merged
merged 3 commits into from Feb 8, 2017

Conversation

paulgiltinan
Copy link
Contributor

As suggested in my email to quantlib-users on 7th December 2016, I propose updating AnalyticEuropeanEngine so that it can support separate rate curves for discounting and estimation of the forward price. My mail to quantlib-users provides a more detailed description.
The update involves enhancing the constructor for AnalyticEuropeanEngine, so that it includes an optional second argument for the discount curve. If this is left empty/null then the engine reverts to its previous behaviour (i.e. same rate curve used for discounting and estimation of forward price).

// if discount curve not specified,
// we default to the risk free rate curve
// embedded within the GBM process
if (discountCurve_.empty())
Copy link
Owner

Choose a reason for hiding this comment

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

I would move this check to the calculate method. It might happen that the discount-curve handle is still empty at construction, but will be linked to a curve before calculation.

@paulgiltinan
Copy link
Contributor Author

Good idea. That's done now.

@lballabio lballabio added this to the 1.10 release milestone Jan 10, 2017
@lballabio lballabio merged commit 8f9fed9 into lballabio:master Feb 8, 2017
lballabio added a commit that referenced this pull request Feb 8, 2017
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