QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
choiasianengine.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2025 Klaus Spanderen
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20/*! \file choiasianengine.hpp
21 \brief Black Scholes arithmetic Asian option engine
22*/
23
24#ifndef quantlib_choi_asian_engine_hpp
25#define quantlib_choi_asian_engine_hpp
26
27#include <ql/pricingengine.hpp>
30
31namespace QuantLib {
32 //! Pricing engine for arithmetic Asian options
33 /*! This class replicates an arithmetic Asian option using a basket option.
34 The pricing of an arithmetic Asian option is substituted with the pricing
35 of a basket option.
36 */
37
38 /*! References:
39 "Sum of all Black-Scholes-Merton Models: An efficient Pricing Method for
40 Spread, Basket and Asian Options", Jaehyuk Choi, 2018
41 https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2913048
42
43 A Python implementation from the author of the paper is also available
44 https://github.com/PyFE/PyFENG
45
46 \ingroup asianengines
47 */
48
50 public:
51 explicit ChoiAsianEngine(
52 ext::shared_ptr<GeneralizedBlackScholesProcess> p,
53 Real lambda = 15,
54 Size maxNrIntegrationSteps = 2 << 21);
55
56 void calculate() const override;
57
58 private:
59 const ext::shared_ptr<GeneralizedBlackScholesProcess> process_;
62 };
63}
64
65#endif
Asian option on a single asset.
Black-Scholes processes.
Pricing engine for arithmetic Asian options.
void calculate() const override
const ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Discrete-averaging Asian engine base class.
QL_REAL Real
real number
Definition: types.hpp:50
std::size_t Size
size of a container
Definition: types.hpp:58
Definition: any.hpp:37
Base class for pricing engines.