Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
futurepricehelper.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 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/futurepricehelper.hpp
20 \brief Future price helper
21 \ingroup termstructures
22*/
23
24#ifndef quantext_futurepricehelper_hpp
25#define quantext_futurepricehelper_hpp
26
28#include <ql/termstructures/bootstraphelper.hpp>
29
30namespace QuantExt {
31
32typedef QuantLib::BootstrapHelper<PriceTermStructure> PriceHelper;
33
34//! Helper for bootstrapping over future prices
35//! \ingroup termstructures
37public:
38 //! \name Constructors
39 //@{
40 FuturePriceHelper(const QuantLib::Handle<QuantLib::Quote>& price,
41 const QuantLib::Date& expiryDate);
42
43 FuturePriceHelper(QuantLib::Real price, const QuantLib::Date& expiryDate);
44 //@}
45
46 //! \name PriceHelper interface
47 //@{
48 QuantLib::Real impliedQuote() const override;
49 //@}
50
51 //! \name Visitability
52 //@{
53 void accept(QuantLib::AcyclicVisitor& v) override;
54 //@}
55};
56
57}
58
59#endif
void accept(QuantLib::AcyclicVisitor &v) override
QuantLib::Real impliedQuote() const override
FuturePriceHelper(const QuantLib::Handle< QuantLib::Quote > &price, const QuantLib::Date &expiryDate)
FuturePriceHelper(QuantLib::Real price, const QuantLib::Date &expiryDate)
QuantLib::BootstrapHelper< PriceTermStructure > PriceHelper
Term structure of prices.