QuantLib icon indicating copy to clipboard operation
QuantLib copied to clipboard

Discuss valuationDate versus evaluationDate

Open sweemer opened this issue 2 years ago • 4 comments

Continuation of https://github.com/lballabio/QuantLib/pull/1566#issuecomment-1632109256

Questions:

  1. What if the constructor of Instrument registered with the evaluation date, no matter what?
  2. If so, should Instrument::valuationDate always be in sync with Settings::evaluationDate?
  3. Or perhaps this member can be deprecated and kept in Instrument::results only?
  4. Is Instrument::valuationDate a misnomer; and if so, what should be done about it?

sweemer avatar Jul 12 '23 11:07 sweemer

Related Question: If a YieldTermStructure is set up with a fixed reference date (assume this is equal to the rate curve's settlement date as well) which differs from Settings::evaluationDate and we have an instrument plus an associated pricing engine that only depends on that rate curve:

  • is it legal to consider the rate curve's reference date as the valuation date w.r.t. which we calculate the NPV or do we expect the NPV to be calculated always in line with the evaluation date from the settings?
  • in the former case, is the expectation that we check term structure reference dates to be in line with the evaluation date in the settings and throw an error if they differ?

pcaspers avatar Jul 26 '23 09:07 pcaspers

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Sep 25 '23 01:09 github-actions[bot]

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Nov 25 '23 01:11 github-actions[bot]

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

github-actions[bot] avatar Jan 31 '24 01:01 github-actions[bot]

This issue was automatically closed because it has been stalled for two weeks with no further activity.

github-actions[bot] avatar Feb 15 '24 01:02 github-actions[bot]