Skip to content

Commit d38dc88

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "ed87b8b02f" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "baf02c8b3b" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb"
2 parents a651532 + baf02c8 commit d38dc88

104 files changed

Lines changed: 1397 additions & 1546 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/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ DEBIAN_TAG=11.7
33
# it's recommended to include CMAKE_BUILD_TYPE and BOOST_VARIANT in QL_TAG, ORE_TAG, BOOST_TAG
44
# to distinguish a release build from a debug build
55

6-
QL_TAG=1.31.1_55f433ce8
6+
QL_TAG=1.31.1_d2327d5a7135
77
ORE_TAG=latest
88
BOOST_TAG=1.78.0
99
BOOST_DIR=1_78_0

Docs/AMC/amc.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ \subsection{Pricing Engine Configuration}\label{sec:pricing_engine_config}
256256
257257
\begin{enumerate}
258258
\item \verb+Training.Sequence+: The sequence type for the traning phase, can be \verb+MersenneTwister+,
259-
\verb+MersenneTwisterAntithetc+, \verb+Sobol+ or \verb+SobolBrownianBridge+
259+
\verb+MersenneTwisterAntithetc+, \verb+Sobol+, \verb+Burley2020Sobol+, \verb+SobolBrownianBridge+,
260+
\verb+Burley2020SobolBrownianBridge+
260261
\item \verb+Training.Seed+: The seed for the random number generation in the training phase
261262
\item \verb+Training.Samples+: The number of samples to be used for the training phase
262263
\item \verb+Pricing.Sequence+: The sequence type for the pricing phase, same values allowed as for training

Docs/ScriptedTrade/docs/models.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ \subsection{Pricing Engine Configuration}\label{pricingengine_config}
111111
\item RegressionOrder: The order of the polynomial basis to compute conditional expectations via regression
112112
analysis. Applies to MC only.
113113
\item SequenceType: The sequence type used for pricing. Defaults to SobolBrownianBridge. Possible values
114-
SobolBrownianBridge, MersenneTwister, MersenneTwisterAnithetic, Sobol. Applies to MC only.
114+
SobolBrownianBridge, Burley2020SobolBrownianBridge, MersenneTwister, MersenneTwisterAnithetic, Sobol,
115+
Burley2020Sobol. Applies to MC only.
115116
\item PolynomType: The polynom type used for regression analysis. Defaults to Monomial. Possible values Monomial,
116117
Laguerre, Hermite, Hyperbolic, Legendre, Chebyshev, Chebychev2nd. Applies to MC only.
117118
\item TrainingSamples: If given, pricing and training are separate phases and traning phase is using this number of

Docs/UserGuide/parameterisation/simulation.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@
5656
%\item {\tt Scenario: } Choose between {\em Simple } and {\em Complex } implementations, the latter optimized for
5757
% more efficient memory usage. \todo[inline]{Remove Scenario choice}
5858
\item {\tt DayCounter:} Day count convention used to translate dates to times. Optional, defaults to ActualActual ISDA.
59-
\item {\tt Sequence:} Choose random sequence generator ({\em MersenneTwister, MersenneTwisterAntithetic, Sobol,
60-
SobolBrownianBridge}).
59+
\item {\tt Sequence:} Choose random sequence generator ({\em MersenneTwister, MersenneTwisterAntithetic,
60+
Sobol,Burley2020Sobol, SobolBrownianBridge, Burley2020SobolBrownianBridge}).
6161
\item {\tt Seed:} Random number generator seed
6262
\item {\tt Samples:} Number of Monte Carlo paths to be produced
6363
%\item {\tt Fixings: } Choose whether fixings should be simulated or not, and if so which fixing simulation method to
6464
use ({\em Backward, Forward, BestOfForwardBackward, InterpolatedForwardBackward}), which number of forward horizon days
6565
to use if one of the {\em Forward } related methods is chosen.
66-
\item {\tt Ordering:} If the sequence type {\em SobolBrownianBridge} is used, ordering of variates ({\em Factors, Steps,
67-
Diagonal})
68-
\item {\tt DirectionIntegers:} If the sequence type {\em SobolBrownianBridge} or {\em Sobol} is used, type of direction
69-
integers in Sobol generator ({\em Unit, Jaeckel, SobolLevitan, SobolLevitanLemieux, JoeKuoD5, JoeKuoD6, JoeKuoD7, Kuo,
70-
Kuo2, Kuo3})
66+
\item {\tt Ordering:} If the sequence type {\em SobolBrownianBridge} or {\em Burley2020SobolBrownianBridge} is used,
67+
ordering of variates ({\em Factors, Steps, Diagonal})
68+
\item {\tt DirectionIntegers:} If the sequence type {\em SobolBrownianBridge}, {\em Burley2020SobolBrownianBridge}, {\em
69+
Sobol} or {\em Burley2020Sobol} is used, type of direction integers in Sobol generator ({\em Unit, Jaeckel,
70+
SobolLevitan, SobolLevitanLemieux, JoeKuoD5, JoeKuoD6, JoeKuoD7, Kuo, Kuo2, Kuo3})
7171
\item {\tt CloseOutLag}: If this tag is present, this specifies the close-out period length (e.g. 2W) used; otherwise no close-out grid is built. The close-out grid is an auxiliary time grid that is offset from the main default date grid by the close-out period, typically set to the applicable margin period of risk. If present, it is used to evolve the portfolio value and determine close-out values associated with the preceding default date valuation.
7272
\item {\tt MporMode}: This tag is expected if the previous one is present, permissible values are then {\tt StickyDate} and {\tt ActualDate}. {\tt StickyDate} means that only market data is evolved from the default date to close-out date for close-out date valuation, the valuation as of date remains unchanged and trades do not ``age'' over the period. As a consequence, exposure evolutions will not show spikes caused by cash flows within the close-out period. {\tt ActualDate} means that trades will also age over the close-out period so that one can experience exposure evolution spikes due to cash flows.
7373
\end{itemize}
@@ -797,4 +797,4 @@
797797
\label{lst:simulation_market_configuration}
798798
\end{longlisting}
799799
800-
\todo[inline]{Comment on cap/floor surface structure and reaction to time decay}
800+
\todo[inline]{Comment on cap/floor surface structure and reaction to time decay}

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: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,7 +2851,8 @@ \subsubsection*{Pricing Engine Configuration}
28512851

28522852
\begin{enumerate}
28532853
\item \verb+Training.Sequence+: The sequence type for the traning phase, can be \verb+MersenneTwister+,
2854-
\verb+MersenneTwisterAntithetc+, \verb+Sobol+ or \verb+SobolBrownianBridge+
2854+
\verb+MersenneTwisterAntithetc+, \verb+Sobol+, \verb+Burley2020Sobol+, \verb+SobolBrownianBridge+,
2855+
\verb+Burley2020SobolBrownianBridge+
28552856
\item \verb+Training.Seed+: The seed for the random number generation in the training phase
28562857
\item \verb+Training.Samples+: The number of samples to be used for the training phase
28572858
\item \verb+Pricing.Sequence+: The sequence type for the pricing phase, same values allowed as for training
@@ -5131,17 +5132,17 @@ \subsubsection{Parameters}\label{sec:sim_params}
51315132
% more efficient memory usage. \todo[inline]{Remove Scenario choice}
51325133
\item {\tt DayCounter:} Day count convention used to translate dates to times. Optional, defaults to ActualActual ISDA.
51335134
\item {\tt Sequence:} Choose random sequence generator ({\em MersenneTwister, MersenneTwisterAntithetic, Sobol,
5134-
SobolBrownianBridge}).
5135+
Burley2020Sobol, SobolBrownianBridge, Burley2020SobolBrownianBridge}).
51355136
\item {\tt Seed:} Random number generator seed
51365137
\item {\tt Samples:} Number of Monte Carlo paths to be produced
51375138
%\item {\tt Fixings: } Choose whether fixings should be simulated or not, and if so which fixing simulation method to
51385139
use ({\em Backward, Forward, BestOfForwardBackward, InterpolatedForwardBackward}), which number of forward horizon days
51395140
to use if one of the {\em Forward } related methods is chosen.
5140-
\item {\tt Ordering:} If the sequence type {\em SobolBrownianBridge} is used, ordering of variates ({\em Factors, Steps,
5141-
Diagonal})
5142-
\item {\tt DirectionIntegers:} If the sequence type {\em SobolBrownianBridge} or {\em Sobol} is used, type of direction
5143-
integers in Sobol generator ({\em Unit, Jaeckel, SobolLevitan, SobolLevitanLemieux, JoeKuoD5, JoeKuoD6, JoeKuoD7, Kuo,
5144-
Kuo2, Kuo3})
5141+
\item {\tt Ordering:} If the sequence type {\em SobolBrownianBridge} or {\em Burley2020SobolBrownianBridge} is used,
5142+
ordering of variates ({\em Factors, Steps, Diagonal})
5143+
\item {\tt DirectionIntegers:} If the sequence type {\em SobolBrownianBridge}, {\em Burley2020SobolBrownianBridge}, {\em
5144+
Sobol} or {\em Burley2020Sobol} is used, type of direction integers in Sobol generator ({\em Unit, Jaeckel,
5145+
SobolLevitan, SobolLevitanLemieux, JoeKuoD5, JoeKuoD6, JoeKuoD7, Kuo, Kuo2, Kuo3})
51455146
\item {\tt CloseOutLag}: If this tag is present, this specifies the close-out period length (e.g. 2W) used; otherwise no close-out grid is built. The close-out grid is an auxiliary time grid that is offset from the main default date grid by the close-out period, typically set to the applicable margin period of risk. If present, it is used to evolve the portfolio value and determine close-out values associated with the preceding default date valuation.
51465147
\item {\tt MporMode}: This tag is expected if the previous one is present, permissible values are then {\tt StickyDate} and {\tt ActualDate}. {\tt StickyDate} means that only market data is evolved from the default date to close-out date for close-out date valuation, the valuation as of date remains unchanged and trades do not ``age'' over the period. As a consequence, exposure evolutions will not show spikes caused by cash flows within the close-out period. {\tt ActualDate} means that trades will also age over the close-out period so that one can experience exposure evolution spikes due to cash flows.
51475148
\end{itemize}
@@ -6135,10 +6136,15 @@ \subsection{Stress Scenario Analysis: {\tt stressconfig.xml}}\label{sec:stress}
61356136
In case of the swaption volatility shifts, the single value given as {\tt Shift} (without the attributes {\tt expiry}
61366137
and {\tt term}) represents a default value that is used whenever no explicit value is given for a expiry / term pair.
61376138

6139+
UseSpreadedTermStructures: If set to true, spreaded termstructures over t0 will be used for the scenario calculation, to
6140+
improve the alignment of the scenario sim market and t0 curves.
6141+
6142+
61386143
\begin{longlisting}
61396144
%\hrule\medskip
61406145
\begin{minted}[fontsize=\scriptsize]{xml}
61416146
<StressTesting>
6147+
<UseSpreadedTermStructures>false</UseSpreadedTermStructures>
61426148
<StressTest id="parallel_rates">
61436149
<DiscountCurves>
61446150
<DiscountCurve ccy="EUR">

Examples/Example_10/ExpectedOutput/log_structured.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

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">

0 commit comments

Comments
 (0)