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

Cache rate in FuturesConvAdjustmentQuote #2145

Merged

Conversation

eltoder
Copy link
Contributor

@eltoder eltoder commented Jan 28, 2025

No description provided.

@coveralls
Copy link

Coverage Status

coverage: 73.244% (-0.002%) from 73.246%
when pulling a907444 on eltoder:feature/future-convadj-quote-cache
into 947cab4 on lballabio:master.

@@ -65,11 +66,13 @@ namespace QuantLib {
Handle<Quote> futuresQuote_;
Handle<Quote> volatility_;
Handle<Quote> meanReversion_;
mutable Real rate_ = Null<Real>();
Copy link
Owner

Choose a reason for hiding this comment

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

Too late for the others, but this one can be private :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If someone overrides value(), they will probably want access to rate_ or they will be forced to duplicate it.

Copy link
Owner

Choose a reason for hiding this comment

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

It doesn't strike me as a class you'll want to inherit from, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I'm inheriting from it to implement a different convexity model :)

Copy link
Owner

Choose a reason for hiding this comment

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

Ok then 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

@lballabio lballabio added this to the Release 1.38 milestone Jan 28, 2025
@lballabio lballabio merged commit 51a77aa into lballabio:master Jan 28, 2025
42 checks passed
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.

3 participants