Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
analyticcashsettledeuropeanengine.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/pricingengines/analyticcashsettledeuropeanengine.hpp
20 \brief pricing engine for cash settled European vanilla options.
21 \ingroup engines
22*/
23
24#ifndef quantext_analytic_cash_settled_european_engine_hpp
25#define quantext_analytic_cash_settled_european_engine_hpp
26
27#include <ql/processes/blackscholesprocess.hpp>
30
31namespace QuantExt {
32
33//! Pricing engine for cash settled European vanilla options using analytical formulae
34/*! \ingroup engines
35 */
37public:
38 /*! The risk-free rate in the given process \p bsp is used for both forecasting and discounting.
39 */
40 AnalyticCashSettledEuropeanEngine(const QuantLib::ext::shared_ptr<QuantLib::GeneralizedBlackScholesProcess>& bsp);
41
42 /*! As usual, the risk-free rate from the given process \p bsp is used for forecasting the forward price. The
43 \p discountCurve is used for discounting.
44 */
45 AnalyticCashSettledEuropeanEngine(const QuantLib::ext::shared_ptr<QuantLib::GeneralizedBlackScholesProcess>& bsp,
46 const QuantLib::Handle<QuantLib::YieldTermStructure>& discountCurve);
47
48 //! \name PricingEngine interface
49 //@{
50 void calculate() const override;
51 //@}
52
53private:
54 //! Underlying engine that does the work.
56 //! Underlying process
57 QuantLib::ext::shared_ptr<QuantLib::GeneralizedBlackScholesProcess> bsp_;
58 //! Curve for discounting cashflows
59 QuantLib::Handle<QuantLib::YieldTermStructure> discountCurve_;
60};
61
62} // namespace QuantExt
63
64#endif
Analytic European Forward engine.
cash settled european vanilla option.
Pricing engine for cash settled European vanilla options using analytical formulae.
AnalyticCashSettledEuropeanEngine(const QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > &bsp)
AnalyticCashSettledEuropeanEngine(const QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > &bsp, const QuantLib::Handle< QuantLib::YieldTermStructure > &discountCurve)
QuantLib::Handle< QuantLib::YieldTermStructure > discountCurve_
Curve for discounting cashflows.
QuantExt::AnalyticEuropeanForwardEngine underlyingEngine_
Underlying engine that does the work.
QuantLib::ext::shared_ptr< QuantLib::GeneralizedBlackScholesProcess > bsp_
Underlying process.
Pricing engine for European vanilla forward options using analytical formulae.