Skip to content

Commit 7ef7b3f

Browse files
committed
Merge branch 'master' into 'master'
update from master Closes QPR-12027 See merge request qs/ore-github!15
2 parents 5922252 + 63e73dd commit 7ef7b3f

200 files changed

Lines changed: 5531 additions & 2400 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.

Docker/Dockerfile-Test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update \
55
&& DEBIAN_FRONTEND=noninteractive apt-get install -y dos2unix python3 python3-pip libxml2-utils xsltproc \
66
&& apt-get clean \
77
&& rm -rf /var/lib/apt/lists/* \
8-
&& pip3 install matplotlib pandas nose nose_xunitmp datacompy
8+
&& pip3 install matplotlib pandas nose nose_xunitmp datacompy jsondiff
99

1010
CMD bash
1111

Docs/UserGuide/tradecomponents/underlying.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ \subsubsection{Underlying}
106106
<FutureMonthOffset>0</FutureMonthOffset>
107107
<DeliveryRollDays>0</DeliveryRollDays>
108108
<DeliveryRollCalendar>TARGET</DeliveryRollCalendar>
109+
<FutureContractMonth>Nov2023</FutureContractMonth>
109110
</Underlying>
110111
\end{minted}
111112
\caption{Commodity Underlying}
@@ -242,6 +243,14 @@ \subsubsection{Underlying}
242243

243244
Allowable values: See Table \ref{tab:calendar}. Defaults to the null calendar if left blank or omitted, and \lstinline!Type!: is \emph{Commodity}.
244245

246+
\item \lstinline!FutureContractMonth! [Optional]:
247+
Only valid when \lstinline!Type! is \emph{Commodity}, \lstinline!PriceType! is FutureSettlement and there is no \lstinline!FutureExpiryDate! node. It specifies the underlying future contract month in the format \emph{MonYYYY}, for example Nov2023.
248+
249+
\item \lstinline!FutureExpiryDate! [Optional]:
250+
Only valid when \lstinline!Type! is \emph{Commodity}, \lstinline!PriceType! is FutureSettlement and there is no \lstinline!FutureContractMonth! node. This gives the expiration date of the underlying commodity future contract.
251+
252+
If the field \lstinline!FutureExpiryDate! and \lstinline!FutureContractMonth! are omitted, the expiration date of the underlying commodity future contract is set to the prompt future, adjusted for any \lstinline!FutureMonthOffset!.
253+
245254
\item \lstinline!Interpolation! [Optional]:
246255
Only valid when \lstinline!Type! is \emph{Inflation}. The index observation interpolation between fixings.
247256

Docs/UserGuide/userguide.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6135,10 +6135,15 @@ \subsection{Stress Scenario Analysis: {\tt stressconfig.xml}}\label{sec:stress}
61356135
In case of the swaption volatility shifts, the single value given as {\tt Shift} (without the attributes {\tt expiry}
61366136
and {\tt term}) represents a default value that is used whenever no explicit value is given for a expiry / term pair.
61376137

6138+
UseSpreadedTermStructures: If set to true, spreaded termstructures over t0 will be used for the scenario calculation, to
6139+
improve the alignment of the scenario sim market and t0 curves.
6140+
6141+
61386142
\begin{longlisting}
61396143
%\hrule\medskip
61406144
\begin{minted}[fontsize=\scriptsize]{xml}
61416145
<StressTesting>
6146+
<UseSpreadedTermStructures>false</UseSpreadedTermStructures>
61426147
<StressTest id="parallel_rates">
61436148
<DiscountCurves>
61446149
<DiscountCurve ccy="EUR">
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{ "@timestamp": "2023-10-20T23:28:28.996474", "key": "Running XVA Analytic", "progress": 0, "total": 1 }
2+
{ "@timestamp": "2023-10-20T23:28:28.999475", "key": "XVA: Build Today's Market", "progress": 0, "total": 1 }
3+
{ "@timestamp": "2023-10-20T23:28:29.261480", "key": "XVA: Build Today's Market", "progress": 1, "total": 1 }
4+
{ "@timestamp": "2023-10-20T23:28:29.925485", "key": "XVA: Build Portfolio", "progress": 0, "total": 1 }
5+
{ "@timestamp": "2023-10-20T23:28:29.932486", "key": "XVA: Build Portfolio", "progress": 1, "total": 1 }
6+
{ "@timestamp": "2023-10-20T23:28:29.952486", "key": "XVA: Building cube", "progress": 0, "total": 50 }
7+
{ "@timestamp": "2023-10-20T23:28:30.633495", "key": "XVA: Building cube", "progress": 1, "total": 50 }
8+
{ "@timestamp": "2023-10-20T23:28:30.678496", "key": "XVA: Building cube", "progress": 2, "total": 50 }
9+
{ "@timestamp": "2023-10-20T23:28:30.710535", "key": "XVA: Building cube", "progress": 3, "total": 50 }
10+
{ "@timestamp": "2023-10-20T23:28:30.742498", "key": "XVA: Building cube", "progress": 4, "total": 50 }
11+
{ "@timestamp": "2023-10-20T23:28:30.778497", "key": "XVA: Building cube", "progress": 5, "total": 50 }
12+
{ "@timestamp": "2023-10-20T23:28:30.808497", "key": "XVA: Building cube", "progress": 6, "total": 50 }
13+
{ "@timestamp": "2023-10-20T23:28:30.837496", "key": "XVA: Building cube", "progress": 7, "total": 50 }
14+
{ "@timestamp": "2023-10-20T23:28:30.871498", "key": "XVA: Building cube", "progress": 8, "total": 50 }
15+
{ "@timestamp": "2023-10-20T23:28:30.901499", "key": "XVA: Building cube", "progress": 9, "total": 50 }
16+
{ "@timestamp": "2023-10-20T23:28:30.937499", "key": "XVA: Building cube", "progress": 10, "total": 50 }
17+
{ "@timestamp": "2023-10-20T23:28:30.973500", "key": "XVA: Building cube", "progress": 11, "total": 50 }
18+
{ "@timestamp": "2023-10-20T23:28:31.008500", "key": "XVA: Building cube", "progress": 12, "total": 50 }
19+
{ "@timestamp": "2023-10-20T23:28:31.045499", "key": "XVA: Building cube", "progress": 13, "total": 50 }
20+
{ "@timestamp": "2023-10-20T23:28:31.073501", "key": "XVA: Building cube", "progress": 14, "total": 50 }
21+
{ "@timestamp": "2023-10-20T23:28:31.113499", "key": "XVA: Building cube", "progress": 15, "total": 50 }
22+
{ "@timestamp": "2023-10-20T23:28:31.145502", "key": "XVA: Building cube", "progress": 16, "total": 50 }
23+
{ "@timestamp": "2023-10-20T23:28:31.177501", "key": "XVA: Building cube", "progress": 17, "total": 50 }
24+
{ "@timestamp": "2023-10-20T23:28:31.205502", "key": "XVA: Building cube", "progress": 18, "total": 50 }
25+
{ "@timestamp": "2023-10-20T23:28:31.249503", "key": "XVA: Building cube", "progress": 19, "total": 50 }
26+
{ "@timestamp": "2023-10-20T23:28:31.278507", "key": "XVA: Building cube", "progress": 20, "total": 50 }
27+
{ "@timestamp": "2023-10-20T23:28:31.315504", "key": "XVA: Building cube", "progress": 21, "total": 50 }
28+
{ "@timestamp": "2023-10-20T23:28:31.349504", "key": "XVA: Building cube", "progress": 22, "total": 50 }
29+
{ "@timestamp": "2023-10-20T23:28:31.379504", "key": "XVA: Building cube", "progress": 23, "total": 50 }
30+
{ "@timestamp": "2023-10-20T23:28:31.408503", "key": "XVA: Building cube", "progress": 24, "total": 50 }
31+
{ "@timestamp": "2023-10-20T23:28:31.452506", "key": "XVA: Building cube", "progress": 25, "total": 50 }
32+
{ "@timestamp": "2023-10-20T23:28:31.480507", "key": "XVA: Building cube", "progress": 26, "total": 50 }
33+
{ "@timestamp": "2023-10-20T23:28:31.509509", "key": "XVA: Building cube", "progress": 27, "total": 50 }
34+
{ "@timestamp": "2023-10-20T23:28:31.539505", "key": "XVA: Building cube", "progress": 28, "total": 50 }
35+
{ "@timestamp": "2023-10-20T23:28:31.574506", "key": "XVA: Building cube", "progress": 29, "total": 50 }
36+
{ "@timestamp": "2023-10-20T23:28:31.617511", "key": "XVA: Building cube", "progress": 30, "total": 50 }
37+
{ "@timestamp": "2023-10-20T23:28:31.652511", "key": "XVA: Building cube", "progress": 31, "total": 50 }
38+
{ "@timestamp": "2023-10-20T23:28:31.684508", "key": "XVA: Building cube", "progress": 32, "total": 50 }
39+
{ "@timestamp": "2023-10-20T23:28:31.726510", "key": "XVA: Building cube", "progress": 33, "total": 50 }
40+
{ "@timestamp": "2023-10-20T23:28:31.758508", "key": "XVA: Building cube", "progress": 34, "total": 50 }
41+
{ "@timestamp": "2023-10-20T23:28:31.792510", "key": "XVA: Building cube", "progress": 35, "total": 50 }
42+
{ "@timestamp": "2023-10-20T23:28:31.822511", "key": "XVA: Building cube", "progress": 36, "total": 50 }
43+
{ "@timestamp": "2023-10-20T23:28:31.853510", "key": "XVA: Building cube", "progress": 37, "total": 50 }
44+
{ "@timestamp": "2023-10-20T23:28:31.880512", "key": "XVA: Building cube", "progress": 38, "total": 50 }
45+
{ "@timestamp": "2023-10-20T23:28:31.910511", "key": "XVA: Building cube", "progress": 39, "total": 50 }
46+
{ "@timestamp": "2023-10-20T23:28:31.956512", "key": "XVA: Building cube", "progress": 40, "total": 50 }
47+
{ "@timestamp": "2023-10-20T23:28:31.990512", "key": "XVA: Building cube", "progress": 41, "total": 50 }
48+
{ "@timestamp": "2023-10-20T23:28:32.035513", "key": "XVA: Building cube", "progress": 42, "total": 50 }
49+
{ "@timestamp": "2023-10-20T23:28:32.066513", "key": "XVA: Building cube", "progress": 43, "total": 50 }
50+
{ "@timestamp": "2023-10-20T23:28:32.097553", "key": "XVA: Building cube", "progress": 44, "total": 50 }
51+
{ "@timestamp": "2023-10-20T23:28:32.127515", "key": "XVA: Building cube", "progress": 45, "total": 50 }
52+
{ "@timestamp": "2023-10-20T23:28:32.155513", "key": "XVA: Building cube", "progress": 46, "total": 50 }
53+
{ "@timestamp": "2023-10-20T23:28:32.192514", "key": "XVA: Building cube", "progress": 47, "total": 50 }
54+
{ "@timestamp": "2023-10-20T23:28:32.240518", "key": "XVA: Building cube", "progress": 48, "total": 50 }
55+
{ "@timestamp": "2023-10-20T23:28:32.282517", "key": "XVA: Building cube", "progress": 49, "total": 50 }
56+
{ "@timestamp": "2023-10-20T23:28:32.323518", "key": "XVA: Building cube", "progress": 50, "total": 50 }
57+
{ "@timestamp": "2023-10-20T23:28:32.350520", "key": "XVA: Aggregation", "progress": 0, "total": 1 }
58+
{ "@timestamp": "2023-10-20T23:28:32.395517", "key": "XVA: Aggregation", "progress": 1, "total": 1 }
59+
{ "@timestamp": "2023-10-20T23:28:32.396518", "key": "XVA: Reports", "progress": 0, "total": 1 }
60+
{ "@timestamp": "2023-10-20T23:28:32.410517", "key": "XVA: Reports", "progress": 1, "total": 1 }
61+
{ "@timestamp": "2023-10-20T23:28:32.411518", "key": "Running XVA Analytic", "progress": 1, "total": 1 }

Examples/Example_1/Input/ore.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@
1919
<Parameter name="calendarAdjustment">../../Input/calendaradjustment.xml</Parameter>
2020
<Parameter name="currencyConfiguration">../../Input/currencies.xml</Parameter>
2121
</Setup>
22-
<Logging>
23-
<Parameter name="logFile">log.txt</Parameter>
24-
<Parameter name="logMask">31</Parameter>
25-
<Parameter name="progressLogFile">my_log_progress_%N.txt</Parameter>
26-
<Parameter name="progressLogRotationSize">102400</Parameter>
27-
<Parameter name="progressLogToConsole">N</Parameter>
28-
<Parameter name="structuredLogFile">my_structured_logs_%N.txt</Parameter>
29-
<Parameter name="structuredLogRotationSize">102400</Parameter>
30-
</Logging>
3122
<Markets>
3223
<Parameter name="lgmcalibration">libor</Parameter>
3324
<Parameter name="fxcalibration">libor</Parameter>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{ "@timestamp": "2023-10-20T23:29:25.856733", "key": "Running XVA Analytic", "progress": 0, "total": 1 }
2+
{ "@timestamp": "2023-10-20T23:29:25.858733", "key": "XVA: Build Today's Market", "progress": 0, "total": 1 }
3+
{ "@timestamp": "2023-10-20T23:29:26.440291", "key": "XVA: Build Today's Market", "progress": 1, "total": 1 }
4+
{ "@timestamp": "2023-10-20T23:29:27.045338", "key": "XVA: Load Cubes", "progress": 0, "total": 1 }
5+
{ "@timestamp": "2023-10-20T23:29:27.051338", "key": "XVA: Load Cubes", "progress": 1, "total": 1 }
6+
{ "@timestamp": "2023-10-20T23:29:27.237343", "key": "XVA: Aggregation", "progress": 0, "total": 1 }
7+
{ "@timestamp": "2023-10-20T23:29:29.258365", "key": "XVA: Aggregation", "progress": 1, "total": 1 }
8+
{ "@timestamp": "2023-10-20T23:29:29.259364", "key": "XVA: Reports", "progress": 0, "total": 1 }
9+
{ "@timestamp": "2023-10-20T23:29:29.306366", "key": "XVA: Reports", "progress": 1, "total": 1 }
10+
{ "@timestamp": "2023-10-20T23:29:29.306366", "key": "Running XVA Analytic", "progress": 1, "total": 1 }

Examples/Example_10/Input/ore.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</Setup>
1818
<Markets>
1919
<Parameter name="lgmcalibration">collateral_inccy</Parameter>
20-
<Parameter name="fxcalibration">collateral_eur</Parameter>
21-
<Parameter name="pricing">collateral_eur</Parameter>
22-
<Parameter name="simulation">collateral_eur</Parameter>
20+
<Parameter name="fxcalibration">xois_eur</Parameter>
21+
<Parameter name="pricing">xois_eur</Parameter>
22+
<Parameter name="simulation">xois_eur</Parameter>
2323
</Markets>
2424
<Analytics>
2525
<Analytic type="npv">

Examples/Example_10/Input/ore_mpor.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</Setup>
1818
<Markets>
1919
<Parameter name="lgmcalibration">collateral_inccy</Parameter>
20-
<Parameter name="fxcalibration">collateral_eur</Parameter>
21-
<Parameter name="pricing">collateral_eur</Parameter>
22-
<Parameter name="simulation">collateral_eur</Parameter>
20+
<Parameter name="fxcalibration">xois_eur</Parameter>
21+
<Parameter name="pricing">xois_eur</Parameter>
22+
<Parameter name="simulation">xois_eur</Parameter>
2323
</Markets>
2424
<Analytics>
2525
<Analytic type="npv">

Examples/Example_10/Input/ore_mta.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</Setup>
1818
<Markets>
1919
<Parameter name="lgmcalibration">collateral_inccy</Parameter>
20-
<Parameter name="fxcalibration">collateral_eur</Parameter>
21-
<Parameter name="pricing">collateral_eur</Parameter>
22-
<Parameter name="simulation">collateral_eur</Parameter>
20+
<Parameter name="fxcalibration">xois_eur</Parameter>
21+
<Parameter name="pricing">xois_eur</Parameter>
22+
<Parameter name="simulation">xois_eur</Parameter>
2323
</Markets>
2424
<Analytics>
2525
<Analytic type="npv">

Examples/Example_10/Input/ore_threshold.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
</Setup>
1818
<Markets>
1919
<Parameter name="lgmcalibration">collateral_inccy</Parameter>
20-
<Parameter name="fxcalibration">collateral_eur</Parameter>
21-
<Parameter name="pricing">collateral_eur</Parameter>
22-
<Parameter name="simulation">collateral_eur</Parameter>
20+
<Parameter name="fxcalibration">xois_eur</Parameter>
21+
<Parameter name="pricing">xois_eur</Parameter>
22+
<Parameter name="simulation">xois_eur</Parameter>
2323
</Markets>
2424
<Analytics>
2525
<Analytic type="npv">

0 commit comments

Comments
 (0)