Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
corra.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2017 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/corra.hpp
20 \brief Canadian Overnight Repo Rate Average (CORRA) index class
21 \ingroup indexes
22*/
23
24#ifndef quantext_corra_hpp
25#define quantext_corra_hpp
26
27#include <ql/currencies/america.hpp>
28#include <ql/time/calendars/canada.hpp>
29#include <ql/time/daycounters/actual365fixed.hpp>
31
32namespace QuantExt {
33//! %CORRA rate
34/*!
35 \remark Using Canada calendar
36
37 \ingroup indexes
38*/
39class CORRA : public OvernightIndex {
40public:
41 explicit CORRA(const Handle<YieldTermStructure>& h = Handle<YieldTermStructure>())
42 : OvernightIndex("CORRA", 0, CADCurrency(), Canada(), Actual365Fixed(), h) {}
43};
44
45class CORRATerm : public TermRateIndex {
46public:
47 CORRATerm(const Period& tenor, const Handle<YieldTermStructure>& h = Handle<YieldTermStructure>())
48 : TermRateIndex("CAD-CORRATerm", tenor, 2, CADCurrency(), Canada(), ModifiedFollowing, false, Actual365Fixed(), h,
49 QuantLib::ext::make_shared<CORRA>(h)) {}
50};
51} // namespace QuantExt
52
53#endif
CORRA rate
Definition: corra.hpp:39
CORRA(const Handle< YieldTermStructure > &h=Handle< YieldTermStructure >())
Definition: corra.hpp:41
CORRATerm(const Period &tenor, const Handle< YieldTermStructure > &h=Handle< YieldTermStructure >())
Definition: corra.hpp:47
ibor index class to represent term rates like SOFR-1M, 3M, 6M, 12M