Skip to content

Commit b0692e2

Browse files
pcaspersjenkins
authored andcommitted
QPR-11644 add missing reference date implementation
1 parent 20d7ed5 commit b0692e2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

QuantExt/qle/termstructures/creditvolcurve.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ QuantLib::Real ProxyCreditVolCurve::volatility(const QuantLib::Date& exerciseDat
561561
return source_->volatility(exerciseDate, underlyingLength, effectiveStrike, type());
562562
}
563563

564+
const Date& ProxyCreditVolCurve::referenceDate() const { return source_->referenceDate(); }
565+
564566
SpreadedCreditVolCurve::SpreadedCreditVolCurve(const Handle<CreditVolCurve> baseCurve, const std::vector<Date> expiries,
565567
const std::vector<Handle<Quote>> spreads, const bool stickyMoneyness,
566568
const std::vector<Period>& terms,

QuantExt/qle/termstructures/creditvolcurve.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ class ProxyCreditVolCurve : public CreditVolCurve {
133133
QuantLib::Real volatility(const QuantLib::Date& exerciseDate, const QuantLib::Real underlyingLength,
134134
const QuantLib::Real strike, const Type& targetType) const override;
135135

136+
const QuantLib::Date& referenceDate() const override;
137+
136138
private:
137139
QuantLib::Handle<CreditVolCurve> source_;
138140
};

0 commit comments

Comments
 (0)