Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
iborfallbackcurve.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2021 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/termstructures/iborfallbackcurve.hpp
20 \brief projection curve for ibor fallback indices
21*/
22
23#pragma once
24
25#include <ql/indexes/iborindex.hpp>
26#include <ql/termstructures/yieldtermstructure.hpp>
27
28namespace QuantExt {
29using namespace QuantLib;
30
31class IborFallbackCurve : public QuantLib::YieldTermStructure {
32public:
33 IborFallbackCurve(const QuantLib::ext::shared_ptr<IborIndex>& originalIndex,
34 const QuantLib::ext::shared_ptr<OvernightIndex>& rfrIndex, const Real spread, const Date& switchDate);
35
36 QuantLib::ext::shared_ptr<IborIndex> originalIndex() const;
37 QuantLib::ext::shared_ptr<OvernightIndex> rfrIndex() const;
38 Real spread() const;
39 const Date& switchDate() const;
40
41 const Date& referenceDate() const override;
42 Date maxDate() const override;
43 Calendar calendar() const override;
44 Natural settlementDays() const override;
45
46private:
47 Real discountImpl(QuantLib::Time t) const override;
48
49 QuantLib::ext::shared_ptr<IborIndex> originalIndex_;
50 QuantLib::ext::shared_ptr<OvernightIndex> rfrIndex_;
51 Real spread_;
53};
54
55} // namespace QuantExt
Calendar calendar() const override
QuantLib::ext::shared_ptr< IborIndex > originalIndex_
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex_
const Date & referenceDate() const override
Natural settlementDays() const override
Date maxDate() const override
Real discountImpl(QuantLib::Time t) const override
QuantLib::ext::shared_ptr< OvernightIndex > rfrIndex() const
const Date & switchDate() const
QuantLib::ext::shared_ptr< IborIndex > originalIndex() const