Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
termrateindex.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2022 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file qle/indexes/ibor/termrateindex.hpp
20 \brief ibor index class to represent term rates like SOFR-1M, 3M, 6M, 12M
21 \ingroup indexes
22*/
23
24#pragma once
25
26#include <ql/indexes/iborindex.hpp>
27
28namespace QuantExt {
29using namespace QuantLib;
30
31class TermRateIndex : public IborIndex {
32public:
33 TermRateIndex(const std::string& familyName, const Period& tenor, Natural settlementDays, const Currency& currency,
34 const Calendar& fixingCalendar, BusinessDayConvention convention, bool endOfMonth,
35 const DayCounter& dayCounter, Handle<YieldTermStructure> h = Handle<YieldTermStructure>(),
36 const QuantLib::ext::shared_ptr<OvernightIndex>& rfrIndex = nullptr)
37 : IborIndex(familyName, tenor, settlementDays, currency, fixingCalendar, convention, endOfMonth, dayCounter, h),
39
40 QuantLib::ext::shared_ptr<OvernightIndex> rfrIndex() const { return rfrIndex_; }
41
42private:
43 QuantLib::ext::shared_ptr<OvernightIndex> rfrIndex_;
44};
45
46} // namespace QuantExt
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex_
TermRateIndex(const std::string &familyName, const Period &tenor, Natural settlementDays, const Currency &currency, const Calendar &fixingCalendar, BusinessDayConvention convention, bool endOfMonth, const DayCounter &dayCounter, Handle< YieldTermStructure > h=Handle< YieldTermStructure >(), const QuantLib::ext::shared_ptr< OvernightIndex > &rfrIndex=nullptr)
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex() const