Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
nowa.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2018 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/indexes/ibor/nowa.hpp
20 \brief Norwegian Overnight Weighted Average (NOWA) index class
21 \ingroup indexes
22*/
23
24#ifndef quantext_nowa_hpp
25#define quantext_nowa_hpp
26
27#include <ql/currencies/europe.hpp>
28#include <ql/indexes/iborindex.hpp>
29#include <ql/time/calendars/norway.hpp>
30#include <ql/time/daycounters/actualactual.hpp>
31
32namespace QuantExt {
33/*! %NOWA rate
34 https://www.finansnorge.no/en/interest-rates/nowa---the-norwegian-overnight-weighted-average/
35
36 \ingroup indexes
37*/
38class Nowa : public QuantLib::OvernightIndex {
39public:
40 explicit Nowa(
41 const QuantLib::Handle<QuantLib::YieldTermStructure>& h = QuantLib::Handle<QuantLib::YieldTermStructure>())
42 : OvernightIndex("Nowa", 0, QuantLib::NOKCurrency(), QuantLib::Norway(),
43 QuantLib::ActualActual(QuantLib::ActualActual::ISMA), h) {}
44};
45
46} // namespace QuantExt
47
48#endif
Nowa(const QuantLib::Handle< QuantLib::YieldTermStructure > &h=QuantLib::Handle< QuantLib::YieldTermStructure >())
Definition: nowa.hpp:40