Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
averageonindexedcouponpricer.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016 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 averageonindexedcouponpricer.hpp
20 \brief Pricer for average overnight indexed coupons
21
22 \ingroup cashflows
23*/
24
25#ifndef quantext_average_on_indexed_coupon_pricer_hpp
26#define quantext_average_on_indexed_coupon_pricer_hpp
27
29
30#include <ql/cashflows/couponpricer.hpp>
31
32namespace QuantExt {
33using namespace QuantLib;
34
35//! Pricer for average overnight indexed coupons
36/*! \ingroup cashflows
37 */
38class AverageONIndexedCouponPricer : public FloatingRateCouponPricer {
39public:
41
43
44 void initialize(const FloatingRateCoupon& coupon) override;
45 Rate swapletRate() const override;
46
47 Real swapletPrice() const override { QL_FAIL("swapletPrice not available"); }
48 Real capletPrice(Rate) const override { QL_FAIL("capletPrice not available"); }
49 Rate capletRate(Rate) const override { QL_FAIL("capletRate not available"); }
50 Real floorletPrice(Rate) const override { QL_FAIL("floorletPrice not available"); }
51 Rate floorletRate(Rate) const override { QL_FAIL("floorletRate not available"); }
52
53protected:
56 Spread spread_;
58 QuantLib::ext::shared_ptr<OvernightIndex> overnightIndex_;
59
61};
62} // namespace QuantExt
63
64#endif
coupon paying the weighted average of the daily overnight rate
Pricer for average overnight indexed coupons.
QuantLib::ext::shared_ptr< OvernightIndex > overnightIndex_
void initialize(const FloatingRateCoupon &coupon) override
AverageONIndexedCouponPricer(Approximation approxType=Takada)