Skip to content

Commit 6721735

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "7458289532" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "265c600926" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb"
2 parents a0c0985 + 265c600 commit 6721735

76 files changed

Lines changed: 2978 additions & 509 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Docs/UserGuide/tradecomponents/optiondata.tex

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ \subsubsection{Option Data}
2929
<ExerciseDate>2019-04-20</ExerciseDate>
3030
<ExerciseDate>2020-04-20</ExerciseDate>
3131
</ExerciseDates>
32+
<!-- Alternative format for exercise dates using Schedule format -->
33+
<ExerciseSchedule>
34+
<Rules>
35+
<StartDate>2019-04-20</StartDate>
36+
<EndDate>2024-04-20</EndDate>
37+
<Tenor>3M</Tenor>
38+
</Rules>
39+
</ExerciseSchedule>
3240
<Premiums>
3341
<Premium>
3442
<Amount>100000</Amount>
@@ -195,11 +203,16 @@ \subsubsection{Option Data}
195203
Allowable values: See Table \ref{tab:convention} Roll Convention.
196204
197205
\item ExerciseDates: This node contains child elements of type
198-
\lstinline!ExerciseDate!. Options of style \emph{European} or
206+
\lstinline!ExerciseDate!. Options of style \emph{European} or
199207
\emph{American} require a single exercise date expressed by one
200208
single \lstinline!ExerciseDate! child element. \emph{Bermudan}
201209
style options must have two or more \lstinline!ExerciseDate! child
202-
elements.
210+
elements. One can alternatively use \lstinline!ExerciseSchedule! to
211+
specify the option exercise dates.
212+
213+
\item ExerciseSchedule [Optional]: This node can be provided instead of \lstinline!ExerciseDates! and
214+
should be specified in the same format as a Schedule (see Section \ref{ss:schedule_data}), e.g.\ for
215+
a list of Bermudan exercise dates.
203216
204217
\item Premiums [Optional]: Option premium amounts paid by the option buyer to the option seller.
205218

Docs/UserGuide/tradedata/fx_digitalbarrieroption.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,14 @@ \subsubsection{FX Digital Barrier Option}
6767

6868
\end{itemize}
6969

70-
\item BarrierData: This is a trade component sub-node outlined in section \ref{ss:barrier_data}.
70+
\item BarrierData: This is a trade component sub-node outlined in section \ref{ss:barrier_data}.
71+
72+
Note that the \emph{FxDigitalBarrierOption} is a single barrier instrument, and can have only one BarrierData node with one barrier level.
73+
7174
Level specified in BarrierData should be quoted as the amount in DomesticCurrency per one unit of ForeignCurrency, with both currencies as defined in FxDigitalBarrierOptionData node.
7275

76+
Type specified in BarrierData can be one of: \emph{UpAndIn, DownAndIn, UpAndOut, DownAndOut}
77+
7378
\item StartDate[Optional]: The start date for checking if a barrier has been breached prior to today's date. If omitted or left blank no check is made and it is assumed no barrier has been breached in the past. Has no impact if set to today's date or a date in the future. If`StartDate' is provided then the fixings for dates between this date and the asof date are checked to see if the option was triggered. If no fixing is available then we skip that date. This is to allow for backwards compatibility.
7479

7580
Allowable values: See \lstinline!Date! in Table \ref{tab:allow_stand_data}.

Docs/UserGuide/userguide.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4037,6 +4037,7 @@ \subsubsection{Analytics}\label{sec:analytics}
40374037
<Parameter name="flipViewXVA">N</Parameter>
40384038
<Parameter name="flipViewBorrowingCurvePostfix">_BORROW</Parameter>
40394039
<Parameter name="flipViewLendingCurvePostfix">_LEND</Parameter>
4040+
<Parameter name="mporCashFlowMode">NonePay</Parameter>
40404041
</Analytic>
40414042
</Analytics>
40424043
\end{minted}
@@ -4148,6 +4149,9 @@ \subsubsection{Analytics}\label{sec:analytics}
41484149
\item {\tt flipViewXVA:} If set to {\tt Y}, the perspective in XVA calculations is switched to the cpty view, the npvs and the netting sets being reverted during calculation. In order to get the lending/borrowing curve, the calculation assumes these curves being set up with the cptyname + the postfix given in the next two settings.
41494150
\item {\tt flipViewBorrowingCurvePostfix:} postfix for the borrowing curve, the calculation assumes this is curves being set up with cptyname + postfix given.
41504151
\item {\tt flipViewLendingCurvePostfix:} postfix for the lending curve, the calculation assumes this is curve being set up with cptyname + postfix given.
4152+
\item {\tt mporCashFlowMode:} Assumption about payment of cashflows within mpor period. One of NonePay, BothPay, WePay,
4153+
TheyPay, Unspecified. Defaults to Unspecified, in this case PP will assume NonePay if mpor sticky date is used,
4154+
otherwise to BothPay.
41514155
\end{itemize}
41524156

41534157
The two cube file outputs {\tt rawCubeOutputFile} and {\tt netCubeOutputFile} are provided for interactive analysis and visualisation purposes, see section
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#TradeId,TradeType,Maturity,MaturityTime,NPV,NpvCurrency,NPV(Base),BaseCurrency,Notional,NotionalCurrency,Notional(Base),NettingSet,CounterParty
2+
Swp,ScriptedTrade,2036-03-03,20.073770,52.637038,EUR,52.637038,EUR,#N/A,#N/A,#N/A,CPTY_A,CPTY_A
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#TradeId,Factor,Up/Down,Base NPV,Scenario NPV,Difference
2+
CVA,DiscountCurve/EUR/3/6M,Up,11335.04,11335.04,0.00
3+
CVA,DiscountCurve/EUR/4/1Y,Up,11335.04,11335.03,0.00
4+
CVA,DiscountCurve/EUR/5/2Y,Up,11335.04,11335.03,0.00
5+
CVA,DiscountCurve/EUR/6/3Y,Up,11335.04,11335.00,-0.04
6+
CVA,DiscountCurve/EUR/7/5Y,Up,11335.04,11334.63,-0.41
7+
CVA,DiscountCurve/EUR/8/10Y,Up,11335.04,11332.57,-2.46
8+
CVA,DiscountCurve/EUR/9/15Y,Up,11335.04,11329.08,-5.96
9+
CVA,DiscountCurve/EUR/10/20Y,Up,11335.04,11326.46,-8.58
10+
CVA,DiscountCurve/EUR/11/30Y,Up,11335.04,11334.99,-0.05
11+
CVA,IndexCurve/EUR-EURIBOR-3M/9/15Y,Up,11335.04,11335.05,0.01
12+
CVA,IndexCurve/EUR-EURIBOR-3M/10/20Y,Up,11335.04,11335.02,-0.02
13+
CVA,IndexCurve/EUR-EURIBOR-6M/0/2W,Up,11335.04,11335.04,0.00
14+
CVA,IndexCurve/EUR-EURIBOR-6M/1/1M,Up,11335.04,11335.07,0.03
15+
CVA,IndexCurve/EUR-EURIBOR-6M/3/6M,Up,11335.04,11335.23,0.19
16+
CVA,IndexCurve/EUR-EURIBOR-6M/4/1Y,Up,11335.04,11335.67,0.64
17+
CVA,IndexCurve/EUR-EURIBOR-6M/5/2Y,Up,11335.04,11336.58,1.54
18+
CVA,IndexCurve/EUR-EURIBOR-6M/6/3Y,Up,11335.04,11338.34,3.30
19+
CVA,IndexCurve/EUR-EURIBOR-6M/7/5Y,Up,11335.04,11345.55,10.52
20+
CVA,IndexCurve/EUR-EURIBOR-6M/8/10Y,Up,11335.04,11358.75,23.71
21+
CVA,IndexCurve/EUR-EURIBOR-6M/9/15Y,Up,11335.04,11359.90,24.87
22+
CVA,IndexCurve/EUR-EURIBOR-6M/10/20Y,Up,11335.04,11148.05,-186.99
23+
CVA,IndexCurve/EUR-EURIBOR-6M/11/30Y,Up,11335.04,11332.33,-2.70
24+
CVA,SwaptionVolatility/EUR/8/1Y/15Y/ATM,Up,11335.04,11337.27,2.24
25+
CVA,SwaptionVolatility/EUR/9/1Y/20Y/ATM,Up,11335.04,11344.04,9.00
26+
CVA,SwaptionVolatility/EUR/19/2Y/15Y/ATM,Up,11335.04,11341.06,6.03
27+
CVA,SwaptionVolatility/EUR/20/2Y/20Y/ATM,Up,11335.04,11344.09,9.06
28+
CVA,SwaptionVolatility/EUR/30/3Y/15Y/ATM,Up,11335.04,11344.33,9.29
29+
CVA,SwaptionVolatility/EUR/31/3Y/20Y/ATM,Up,11335.04,11341.22,6.18
30+
CVA,SwaptionVolatility/EUR/41/4Y/15Y/ATM,Up,11335.04,11347.87,12.84
31+
CVA,SwaptionVolatility/EUR/42/4Y/20Y/ATM,Up,11335.04,11338.23,3.19
32+
CVA,SwaptionVolatility/EUR/51/5Y/12Y/ATM,Up,11335.04,11337.76,2.73
33+
CVA,SwaptionVolatility/EUR/52/5Y/15Y/ATM,Up,11335.04,11357.51,22.47
34+
CVA,SwaptionVolatility/EUR/61/7Y/10Y/ATM,Up,11335.04,11337.44,2.40
35+
CVA,SwaptionVolatility/EUR/62/7Y/12Y/ATM,Up,11335.04,11362.92,27.88
36+
CVA,SwaptionVolatility/EUR/63/7Y/15Y/ATM,Up,11335.04,11346.67,11.63
37+
CVA,SwaptionVolatility/EUR/71/10Y/7Y/ATM,Up,11335.04,11337.38,2.34
38+
CVA,SwaptionVolatility/EUR/72/10Y/10Y/ATM,Up,11335.04,11356.66,21.62
39+
CVA,SwaptionVolatility/EUR/73/10Y/12Y/ATM,Up,11335.04,11345.03,10.00
40+
CVA,SwaptionVolatility/EUR/81/12Y/5Y/ATM,Up,11335.04,11336.54,1.51
41+
CVA,SwaptionVolatility/EUR/82/12Y/7Y/ATM,Up,11335.04,11353.72,18.68
42+
CVA,SwaptionVolatility/EUR/83/12Y/10Y/ATM,Up,11335.04,11343.61,8.58
43+
CVA,SwaptionVolatility/EUR/88/15Y/1Y/ATM,Up,11335.04,11335.47,0.44
44+
CVA,SwaptionVolatility/EUR/89/15Y/2Y/ATM,Up,11335.04,11336.18,1.15
45+
CVA,SwaptionVolatility/EUR/90/15Y/3Y/ATM,Up,11335.04,11337.70,2.67
46+
CVA,SwaptionVolatility/EUR/91/15Y/4Y/ATM,Up,11335.04,11340.19,5.16
47+
CVA,SwaptionVolatility/EUR/92/15Y/5Y/ATM,Up,11335.04,11346.63,11.59
48+
CVA,SwaptionVolatility/EUR/93/15Y/7Y/ATM,Up,11335.04,11341.53,6.50
49+
CVA,SwaptionVolatility/EUR/99/20Y/1Y/ATM,Up,11335.04,11336.79,1.76
50+
CVA,SwaptionVolatility/EUR/100/20Y/2Y/ATM,Up,11335.04,11336.77,1.73
51+
CVA,SwaptionVolatility/EUR/101/20Y/3Y/ATM,Up,11335.04,11336.82,1.79
52+
CVA,SwaptionVolatility/EUR/102/20Y/4Y/ATM,Up,11335.04,11336.32,1.28
53+
CVA,SurvivalProbability/BANK/0/2W,Up,11335.04,11335.03,0.00
54+
CVA,SurvivalProbability/BANK/1/1M,Up,11335.04,11334.96,-0.08
55+
CVA,SurvivalProbability/BANK/2/3M,Up,11335.04,11334.86,-0.18
56+
CVA,SurvivalProbability/BANK/3/6M,Up,11335.04,11334.40,-0.63
57+
CVA,SurvivalProbability/BANK/4/1Y,Up,11335.04,11334.27,-0.76
58+
CVA,SurvivalProbability/BANK/5/2Y,Up,11335.04,11333.47,-1.57
59+
CVA,SurvivalProbability/BANK/6/3Y,Up,11335.04,11333.22,-1.82
60+
CVA,SurvivalProbability/BANK/7/5Y,Up,11335.04,11334.37,-0.67
61+
CVA,SurvivalProbability/BANK/8/10Y,Up,11335.04,11345.81,10.78
62+
CVA,SurvivalProbability/BANK/9/15Y,Up,11335.04,11361.85,26.82
63+
CVA,SurvivalProbability/BANK/10/20Y,Up,11335.04,11360.90,25.86
64+
CVA,SurvivalProbability/BANK/11/30Y,Up,11335.04,11335.17,0.14

0 commit comments

Comments
 (0)