QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
overnightindexfutureratehelper.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2018 Roy Zywina
5 Copyright (C) 2019 Eisuke Tani
6
7 This file is part of QuantLib, a free-software/open-source library
8 for financial quantitative analysts and developers - http://quantlib.org/
9
10 QuantLib is free software: you can redistribute it and/or modify it
11 under the terms of the QuantLib license. You should have received a
12 copy of the license along with this program; if not, please email
13 <quantlib-dev@lists.sf.net>. The license is also available online at
14 <http://quantlib.org/license.shtml>.
15
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
25#ifndef quantlib_overnightindexfutureratehelper_hpp
26#define quantlib_overnightindexfutureratehelper_hpp
27
28#include <ql/instruments/overnightindexfuture.hpp>
29#include <ql/termstructures/yield/ratehelpers.hpp>
30
31namespace QuantLib {
32
35 public:
37 // first day of reference period
38 const Date& valueDate,
39 // delivery date
40 const Date& maturityDate,
41 const ext::shared_ptr<OvernightIndex>& overnightIndex,
44
46
47 Real impliedQuote() const override;
50
52 void accept(AcyclicVisitor&) override;
55 private:
56 ext::shared_ptr<OvernightIndexFuture> future_;
58 };
59
61
69 public:
71 Month referenceMonth,
72 Year referenceYear,
73 Frequency referenceFreq,
75
77 Month referenceMonth,
78 Year referenceYear,
79 Frequency referenceFreq,
81 };
82
83}
84
85#endif
degenerate base class for the Acyclic Visitor pattern
Definition: visitor.hpp:33
Base helper class for bootstrapping.
virtual Date maturityDate() const
instrument's maturity date
Concrete date class.
Definition: date.hpp:125
Shared handle to an observable.
Definition: handle.hpp:41
RateHelper for bootstrapping over overnight compounding futures.
void setTermStructure(YieldTermStructure *) override
RelinkableHandle< YieldTermStructure > termStructureHandle_
ext::shared_ptr< OvernightIndexFuture > future_
Relinkable handle to an observable.
Definition: handle.hpp:112
RateHelper for bootstrapping over CME SOFR futures.
Interest-rate term structure.
Frequency
Frequency of events.
Definition: frequency.hpp:37
Integer Year
Year number.
Definition: date.hpp:87
Month
Month names.
Definition: date.hpp:57
QL_REAL Real
real number
Definition: types.hpp:50
Definition: any.hpp:35