Skip to content

Commit a9d3c0b

Browse files
authored
Merge pull request #19 from Model-Validation/IBOR_Indices
Merge corrected IBOR indices
2 parents ec9b82e + 07358ac commit a9d3c0b

11 files changed

Lines changed: 72 additions & 34 deletions

File tree

Docs/UserGuide/allowablevalues.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ \subsection{Allowable Values for Standard Trade Data}
174174
CHF-LIBOR\\ CHF-SARON\\
175175
AUD-LIBOR\\ AUD-BBSW\\
176176
CAD-CDOR\\ CAD-BA\\
177-
SEK-STIBOR\\ SEK-LIBOR\\
178-
DKK-LIBOR\\ DKK-CIBOR \\
177+
SEK-STIBOR\\ SEK-LIBOR \\ SEK-STINA \\
178+
DKK-LIBOR\\ DKK-CIBOR \\ DKK-CITA \\
179179
SGD-SIBOR\\ SGD-SOR \\
180180
HKD-HIBOR \\
181181
NOK-NIBOR \\

Docs/UserGuide/fixingdata.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ \section{Fixing History}\label{sec:fixings}
8181
\hline
8282
CCY-INDEX & \textit{\begin{tabular}[c]{@{}l@{}}EUR-EONIA\\ EUR-EURIBOR\\ EUR-LIBOR\\ USD-FedFunds\\ USD-Prime\\
8383
USD-LIBOR\\ GBP-SONIA\\ GBP-LIBOR\\ JPY-TONAR\\ JPY-LIBOR\\ CHF-LIBOR\\ CHF-TOIS\\ AUD-LIBOR\\ AUD-BBSW\\ CAD-CDOR\\
84-
CAD-BA\\ CAD-LIBOR\\ SEK-STIBOR\\ SEK-LIBOR\\ DKK-LIBOR\\ DKK-CIBOR\\ SGD-SIBOR\\ HKD-HIBOR \\CZK-PRIBOR\\ HUF-BUBOR\\
84+
CAD-BA\\ CAD-LIBOR\\ SEK-STIBOR\\ SEK-STINA\\ SEK-LIBOR\\ DKK-LIBOR\\ DKK-CIBOR\\ DKK-CITA\\ SGD-SIBOR\\ HKD-HIBOR \\CZK-PRIBOR\\ HUF-BUBOR\\
8585
IDR-IDRFIX\\ INR-MIFOR\\ JPY-TIBOR\\ KRW-KORIBOR\\ MXN-TIIE\\ MYR-KLIBOR\\ NOK-NIBOR\\ NZD-BKBM\\ PLN-WIBOR\\
86-
SEK-STIBOR\\ SGD-SOR\\ SKK-BRIBOR\\ TWD-TAIBOR\\ ZAR-JIBAR\\ DEM-LIBOR \end{tabular}} \\ \hline
86+
SGD-SOR\\ SKK-BRIBOR\\ TWD-TAIBOR\\ ZAR-JIBAR\\ DEM-LIBOR \end{tabular}} \\ \hline
8787
TENOR & An integer followed by \emph{D, W, M or Y} \\
8888
\hline
8989
% \multicolumn{2}{|l|}{\textbf{IR Index on alternative IndexTenor form:}} \\ \hline

OREData/ored/marketdata/yieldcurve.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
#include <ql/currencies/exchangeratemanager.hpp>
20-
#include <ql/indexes/ibor/usdlibor.hpp>
2120
#include <ql/math/randomnumbers/haltonrsg.hpp>
2221
#include <ql/pricingengines/bond/bondfunctions.hpp>
2322
#include <ql/pricingengines/bond/discountingbondengine.hpp>

OREData/ored/utilities/indexparser.cpp

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright (C) 2016 Quaternion Risk Management Ltd
3+
Copyright (C) 2021 Skandinaviska Enskilda Banken AB (publ)
34
All rights reserved.
45
56
This file is part of ORE, a free-software/open-source library
@@ -50,6 +51,7 @@
5051
#include <qle/indexes/ibor/czkpribor.hpp>
5152
#include <qle/indexes/ibor/demlibor.hpp>
5253
#include <qle/indexes/ibor/dkkcibor.hpp>
54+
#include <qle/indexes/ibor/dkkcita.hpp>
5355
#include <qle/indexes/ibor/dkkois.hpp>
5456
#include <qle/indexes/ibor/dkkcita.hpp>
5557
#include <qle/indexes/ibor/ester.hpp>
@@ -76,6 +78,7 @@
7678
#include <qle/indexes/ibor/seksior.hpp>
7779
#include <qle/indexes/ibor/sekstina.hpp>
7880
#include <qle/indexes/ibor/sekstibor.hpp>
81+
#include <qle/indexes/ibor/sekstina.hpp>
7982
#include <qle/indexes/ibor/sgdsibor.hpp>
8083
#include <qle/indexes/ibor/sgdsor.hpp>
8184
#include <qle/indexes/ibor/skkbribor.hpp>
@@ -241,29 +244,17 @@ boost::shared_ptr<IborIndex> parseIborIndex(const string& s, string& tenor, cons
241244

242245
// Map from our _unique internal name_ to an overnight index
243246
static map<string, boost::shared_ptr<OvernightIndex>> onIndices = {
244-
{"EUR-EONIA", boost::make_shared<Eonia>()},
245-
{"EUR-ESTER", boost::make_shared<Ester>()},
246-
{"GBP-SONIA", boost::make_shared<Sonia>()},
247-
{"JPY-TONAR", boost::make_shared<Tonar>()},
248-
{"CHF-TOIS", boost::make_shared<CHFTois>()},
249-
{"CHF-SARON", boost::make_shared<CHFSaron>()},
250-
{"USD-FedFunds", boost::make_shared<FedFunds>()},
251-
{"USD-SOFR", boost::make_shared<Sofr>()},
252-
{"USD-Prime", boost::make_shared<PrimeIndex>()},
253-
{"AUD-AONIA", boost::make_shared<Aonia>()},
254-
{"CAD-CORRA", boost::make_shared<CORRA>()},
255-
{"DKK-DKKOIS", boost::make_shared<DKKOis>()},
256-
{"SEK-SIOR", boost::make_shared<SEKSior>()},
257-
{"COP-IBR", boost::make_shared<COPIbr>()},
258-
{"BRL-CDI", boost::make_shared<BRLCdi>()},
259-
{"NOK-NOWA", boost::make_shared<Nowa>()},
260-
{"CLP-CAMARA", boost::make_shared<CLPCamara>()},
261-
{"NZD-OCR", boost::make_shared<Nzocr>()},
262-
{"PLN-POLONIA", boost::make_shared<PLNPolonia>()},
263-
{"INR-MIBOROIS", boost::make_shared<INRMiborOis>()},
264-
{"SEK-STINA", boost::make_shared<SEKStina>()},
265-
{"DKK-CITA", boost::make_shared<DKKCita>()}
266-
};
247+
{"EUR-EONIA", boost::make_shared<Eonia>()}, {"EUR-ESTER", boost::make_shared<Ester>()},
248+
{"GBP-SONIA", boost::make_shared<Sonia>()}, {"JPY-TONAR", boost::make_shared<Tonar>()},
249+
{"CHF-TOIS", boost::make_shared<CHFTois>()}, {"CHF-SARON", boost::make_shared<CHFSaron>()},
250+
{"USD-FedFunds", boost::make_shared<FedFunds>()}, {"USD-SOFR", boost::make_shared<Sofr>()},
251+
{"USD-Prime", boost::make_shared<PrimeIndex>()}, {"AUD-AONIA", boost::make_shared<Aonia>()},
252+
{"CAD-CORRA", boost::make_shared<CORRA>()}, {"DKK-DKKOIS", boost::make_shared<DKKOis>()},
253+
{"SEK-SIOR", boost::make_shared<SEKSior>()}, {"COP-IBR", boost::make_shared<COPIbr>()},
254+
{"BRL-CDI", boost::make_shared<BRLCdi>()}, {"NOK-NOWA", boost::make_shared<Nowa>()},
255+
{"CLP-CAMARA", boost::make_shared<CLPCamara>()}, {"NZD-OCR", boost::make_shared<Nzocr>()},
256+
{"PLN-POLONIA", boost::make_shared<PLNPolonia>()}, {"INR-MIBOROIS", boost::make_shared<INRMiborOis>()},
257+
{"SEK-STINA", boost::make_shared<SEKStina>()}, {"DKK-CITA", boost::make_shared<DKKCita>()}};
267258

268259
// Map from our _unique internal name_ to an ibor index (the period does not matter here)
269260
static map<string, boost::shared_ptr<IborIndexParser>> iborIndices = {

QuantExt/QuantExt.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@
562562
<ClInclude Include="qle\indexes\ibor\czkpribor.hpp" />
563563
<ClInclude Include="qle\indexes\ibor\demlibor.hpp" />
564564
<ClInclude Include="qle\indexes\ibor\dkkcibor.hpp" />
565+
<ClInclude Include="qle\indexes\ibor\dkkcita.hpp" />
565566
<ClInclude Include="qle\indexes\ibor\dkkois.hpp" />
566567
<ClInclude Include="qle\indexes\ibor\ester.hpp" />
567568
<ClInclude Include="qle\indexes\ibor\hkdhibor.hpp" />

QuantExt/QuantExt.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@
897897
<ClInclude Include="qle\math\quadraticinterpolation.hpp">
898898
<Filter>math</Filter>
899899
</ClInclude>
900-
<ClInclude Include="indexes\ibor\dkkcita.hpp">
900+
<ClInclude Include="qle\indexes\ibor\dkkcita.hpp">
901901
<Filter>indexes\ibor</Filter>
902902
</ClInclude>
903903
<ClInclude Include="qle\indexes\ibor\sekstina.hpp">

QuantExt/qle/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ indexes/ibor/saibor.hpp
288288
indexes/ibor/seksior.hpp
289289
indexes/ibor/sekstina.hpp
290290
indexes/ibor/sekstibor.hpp
291+
indexes/ibor/sekstina.hpp
291292
indexes/ibor/sgdsibor.hpp
292293
indexes/ibor/sgdsor.hpp
293294
indexes/ibor/skkbribor.hpp

QuantExt/qle/indexes/ibor/dkkcita.hpp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
Copyright (C) 2021 Skandinaviska Enskilda Banken AB (publ)
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+
119
/*! \file dkkcita.hpp
220
\brief DKK T/N rate
321
\ingroup indexes
@@ -15,7 +33,7 @@ namespace QuantExt {
1533
using namespace QuantLib;
1634

1735
//! %DKK CITA
18-
/*! %DKK T/N rate
36+
/*! %DKK Copenhagen Interbank T/N Average rate
1937
2038
\remark Using Denmark calendar.
2139

QuantExt/qle/indexes/ibor/seksior.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
1717
*/
1818

19-
/*! \file dkkois.hpp
20-
\brief SKK T/N rate
19+
/*! \file seksior.hpp
20+
\brief SEK T/N rate
2121
\ingroup indexes
2222
*/
2323

@@ -35,7 +35,7 @@ using namespace QuantLib;
3535
//! %SEK SIOR
3636
/*! %SEK T/N rate
3737
38-
\remark Using Denmark calendar.
38+
\remark Using Sweden calendar.
3939
4040
\ingroup indexes
4141
*/

QuantExt/qle/indexes/ibor/sekstina.hpp

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/*
2+
Copyright (C) 2021 Skandinaviska Enskilda Banken AB (publ)
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 sekstina.hpp
20+
\brief SEK T/N rate
21+
\ingroup indexes
22+
*/
23+
124
#ifndef quantext_sekstina_hpp
225
#define quantext_sekstina_hpp
326

@@ -10,7 +33,7 @@ namespace QuantExt {
1033
using namespace QuantLib;
1134

1235
//! %SEK STINA
13-
/*! %SEK T/N rate
36+
/*! %SEK Stockholm T/N Interbank Average rate
1437
1538
*/
1639
class SEKStina : public OvernightIndex {

0 commit comments

Comments
 (0)