Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
cnyrepofix.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 qle/indexes/ibor/cnyrepofix.hpp
20 \brief CNY-CNREPOFIX=CFXS-Reuters index
21 \ingroup indexes
22*/
23
24#ifndef quantext_cny_repo_fix_hpp
25#define quantext_cny_repo_fix_hpp
26
27#include <ql/currencies/asia.hpp>
28#include <ql/indexes/iborindex.hpp>
29#include <ql/time/calendars/china.hpp>
30#include <ql/time/daycounters/actual365fixed.hpp>
31
32namespace QuantExt {
33
34//! CNY-CNREPOFIX=CFXS-Reuters index
35/*! CNY repo fixing rate published by the China Foreign Exchange Trade System (CFETS). See
36 http://www.chinamoney.com.cn/english/bmkfrr. The 7 day maturity rate is the ISDA <em>Floating Rate Option</em>
37 defined in section 7.1(ah) of supplement number 21 to the 2006 ISDA definitions.
38
39 \remark We have used the China inter-bank market calendar for the fixing calendar here. The ISDA definitions
40 refer to <em>Beijing Banking Day</em> as the business days. They may be one and the same.
41
42*/
43class CNYRepoFix : public QuantLib::IborIndex {
44public:
45 CNYRepoFix(const QuantLib::Period& tenor, const QuantLib::Handle<QuantLib::YieldTermStructure>& h =
46 QuantLib::Handle<QuantLib::YieldTermStructure>())
47 : IborIndex("CNY-REPOFIX", tenor, 1, QuantLib::CNYCurrency(), QuantLib::China(QuantLib::China::IB),
48 QuantLib::Following, false, QuantLib::Actual365Fixed(), h) {}
49};
50
51}
52
53#endif
CNY-CNREPOFIX=CFXS-Reuters index.
Definition: cnyrepofix.hpp:43
CNYRepoFix(const QuantLib::Period &tenor, const QuantLib::Handle< QuantLib::YieldTermStructure > &h=QuantLib::Handle< QuantLib::YieldTermStructure >())
Definition: cnyrepofix.hpp:45