Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
tonar.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 tonar.hpp
20 \brief Tokyo Overnight Average Rate (TONAR)
21 \ingroup indexes
22*/
23
24#ifndef quantext_tonar_hpp
25#define quantext_tonar_hpp
26
27#include <ql/currencies/asia.hpp>
28#include <ql/indexes/iborindex.hpp>
29#include <ql/time/calendars/japan.hpp>
30#include <ql/time/daycounters/actual365fixed.hpp>
31
32namespace QuantExt {
33using namespace QuantLib;
34
35//! %JPY %TONAR rate
36/*! Tokyo Overnight Average Rate published by BOJ.
37
38 See <http://www.boj.or.jp/en/statistics/market/short/mutan/>.
39
40 \remark There is a publication lag of 1 business day.
41 Using Japan calendar, should be Tokyo.
42
43 \ingroup indexes
44*/
45class Tonar : public OvernightIndex {
46public:
47 Tonar(const Handle<YieldTermStructure>& h = Handle<YieldTermStructure>())
48 : OvernightIndex("TONAR", 0, JPYCurrency(), Japan(), Actual365Fixed(), h) {}
49};
50
51/*! TONAR term index
52 https://moneyworld.jp/page/torf.html
53 https://www.torf.co.jp/en/2021/04/26/torfrate26april/
54 https://corporate.quick.co.jp/en/torf/ */
55class TonarTerm : public TermRateIndex {
56public:
57 TonarTerm(const Period& tenor, const Handle<YieldTermStructure>& h = Handle<YieldTermStructure>())
58 : TermRateIndex("JPY-TONARTerm", tenor, 2, JPYCurrency(), Japan(), ModifiedFollowing, false, Actual365Fixed(), h,
59 QuantLib::ext::make_shared<Tonar>(h)) {}
60};
61
62} // namespace QuantExt
63
64#endif
JPY TONAR rate
Definition: tonar.hpp:45
Tonar(const Handle< YieldTermStructure > &h=Handle< YieldTermStructure >())
Definition: tonar.hpp:47
TonarTerm(const Period &tenor, const Handle< YieldTermStructure > &h=Handle< YieldTermStructure >())
Definition: tonar.hpp:57