42 Date
d = getValidSofrStart(month, year, freq) + Period(freq);
53 const Date& valueDate,
55 const Date& maturityDate,
56 const ext::shared_ptr<OvernightIndex>& overnightIndex,
60 ext::shared_ptr<Payoff>
payoff;
61 ext::shared_ptr<OvernightIndex> index =
63 future_ = ext::make_shared<OvernightIndexFuture>(
77 bool observer =
false;
94 return future_->convexityAdjustment();
100 Month referenceMonth,
105 getValidSofrStart(referenceMonth, referenceYear, referenceFreq),
106 getValidSofrEnd(referenceMonth, referenceYear, referenceFreq),
107 ext::make_shared<
Sofr>(),
111 "only monthly and quarterly SOFR futures accepted");
116 Month referenceMonth,
119 Real convexityAdjustment)
122 getValidSofrStart(referenceMonth, referenceYear, referenceFreq),
123 getValidSofrEnd(referenceMonth, referenceYear, referenceFreq),
124 ext::make_shared<
Sofr>(),
128 "only monthly and quarterly SOFR futures accepted");
degenerate base class for the Acyclic Visitor pattern
Base helper class for bootstrapping.
virtual void accept(AcyclicVisitor &)
virtual Date maturityDate() const
instrument's maturity date
virtual void setTermStructure(TS *)
sets the term structure to be used for pricing
static Date endOfMonth(const Date &d)
last day of the month to which the given date belongs
static Date advance(const Date &d, Integer units, TimeUnit)
static Date nthWeekday(Size n, Weekday w, Month m, Year y)
n-th given weekday in the given month and year
Shared handle to an observable.
RateHelper for bootstrapping over overnight compounding futures.
void setTermStructure(YieldTermStructure *) override
RelinkableHandle< YieldTermStructure > termStructureHandle_
OvernightIndexFutureRateHelper(const Handle< Quote > &price, const Date &valueDate, const Date &maturityDate, const ext::shared_ptr< OvernightIndex > &overnightIndex, const Handle< Quote > &convexityAdjustment={}, RateAveraging::Type averagingMethod=RateAveraging::Compound)
void accept(AcyclicVisitor &) override
Real impliedQuote() const override
ext::shared_ptr< OvernightIndexFuture > future_
Real convexityAdjustment() const
purely virtual base class for market observables
market element returning a stored value
SofrFutureRateHelper(const Handle< Quote > &price, Month referenceMonth, Year referenceYear, Frequency referenceFreq, const Handle< Quote > &convexityAdjustment={})
Sofr (Secured Overnight Financing Rate) index.
@ GovernmentBond
government-bond calendar
Visitor for a specific class
virtual void visit(T &)=0
Interest-rate term structure.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
Frequency
Frequency of events.
@ Quarterly
every third month
ext::shared_ptr< QuantLib::Payoff > payoff
empty deleter for shared_ptr
Overnight Index Future bootstrap helper.
ext::shared_ptr< BlackVolTermStructure > v