Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
blackovernightindexedcouponpricer.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 blackovernightindexedcouponpricer.hpp
20 \brief black coupon pricer for capped / floored ON indexed coupons
21*/
22
23#pragma once
24
27
28#include <ql/termstructures/volatility/optionlet/optionletvolatilitystructure.hpp>
29
30namespace QuantExt {
31using namespace QuantLib;
32
33//! Black compounded overnight coupon pricer
34/* The methods that are implemented here to price capped / floored compounded ON coupons are
35 highly experimental and ad-hoc. As soon as a market best practice has evolved, the pricer
36 should be revised. */
38public:
40 void initialize(const FloatingRateCoupon& coupon) override;
41 Real swapletPrice() const override;
42 Rate swapletRate() const override;
43 Real capletPrice(Rate effectiveCap) const override;
44 Rate capletRate(Rate effectiveCap) const override;
45 Real floorletPrice(Rate effectiveFloor) const override;
46 Rate floorletRate(Rate effectiveFloor) const override;
47
48private:
49 Real optionletRateGlobal(Option::Type optionType, Real effStrike) const;
50 Real optionletRateLocal(Option::Type optionType, Real effStrike) const;
51
53 ext::shared_ptr<IborIndex> index_;
55
57};
58
59//! Black averaged overnight coupon pricer
60/* The methods that are implemented here to price capped / floored average ON coupons are
61 highly experimental and ad-hoc. As soon as a market best practice has evolved, the pricer
62 should be revised. */
64public:
66 void initialize(const FloatingRateCoupon& coupon) override;
67 Real swapletPrice() const override;
68 Rate swapletRate() const override;
69 Real capletPrice(Rate effectiveCap) const override;
70 Rate capletRate(Rate effectiveCap) const override;
71 Real floorletPrice(Rate effectiveFloor) const override;
72 Rate floorletRate(Rate effectiveFloor) const override;
73
74private:
75 Real optionletRateGlobal(Option::Type optionType, Real effStrike) const;
76 Real optionletRateLocal(Option::Type optionType, Real effStrike) const;
77
79 ext::shared_ptr<IborIndex> index_;
81
83};
84
85} // namespace QuantExt
coupon paying the weighted average of the daily overnight rate
Real optionletRateGlobal(Option::Type optionType, Real effStrike) const
Real optionletRateLocal(Option::Type optionType, Real effStrike) const
void initialize(const FloatingRateCoupon &coupon) override
Real floorletPrice(Rate effectiveFloor) const override
const CappedFlooredAverageONIndexedCoupon * coupon_
Real optionletRateGlobal(Option::Type optionType, Real effStrike) const
Real optionletRateLocal(Option::Type optionType, Real effStrike) const
void initialize(const FloatingRateCoupon &coupon) override
const CappedFlooredOvernightIndexedCoupon * coupon_
Real floorletPrice(Rate effectiveFloor) const override
capped floored averaged indexed coupon pricer base class
CapFlooredAverageONIndexedCouponPricer(const Handle< OptionletVolatilityStructure > &v, const bool effectiveVolatilityInput=false)
capped floored overnight indexed coupon
capped floored overnight indexed coupon
capped floored overnight indexed coupon pricer base class
CappedFlooredOvernightIndexedCouponPricer(const Handle< OptionletVolatilityStructure > &v, const bool effectiveVolatilityInput=false)
coupon paying the compounded daily overnight rate, copy of QL class, added includeSpread flag