Skip to content

Commit d92f010

Browse files
committed
Merge branch 'github_modules' into 'master'
merge latest ore version into ore-github Closes QPR-11732 See merge request qs/ore-github!2
2 parents 52e775e + 6282068 commit d92f010

139 files changed

Lines changed: 7736 additions & 892 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-Latex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN cd / \
88
&& apt-get install -f -y wget \
99
&& apt-get clean \
1010
&& rm -rf /var/lib/apt/lists/* \
11-
&& wget http://personal.psu.edu/jcc8//software/latexmk-jcc/latexmk-469a.zip \
11+
&& wget https://www.cantab.net/users/johncollins/software/latexmk-jcc/latexmk-469a.zip \
1212
&& unzip latexmk-469a.zip \
1313
&& rm -f latexmk-469a.zip \
1414
&& mv /usr/bin/latexmk /usr/bin/latexmk_base \

Docs/UserGuide/computeenvironment.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ \subsection{Random Variable Op Codes}\label{randomVariableOpCodes}
324324
Sqrt & 1 & square root of a variable \\ \hline
325325
Log & 1 & natural logarithm of a variable \\ \hline
326326
Pow & 2 & power of basis, exponent \\ \hline
327-
NormalCdf & 1 & normal cumulative distribut ion \\ \hline
327+
NormalCdf & 1 & normal cumulative distribuion \\ \hline
328328
NormalPdf & 1 & normal distribution density\\ \hline
329329
\end{tabular}
330330
\end{flushleft}

Docs/UserGuide/conventions.tex

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ \subsubsection{Tenor Basis Swap Conventions}
380380
<TenorBasisSwap>
381381
<Id> </Id>
382382
<LongIndex> </LongIndex>
383+
<LongPayTenor> </ShortPayTenor>
383384
<ShortIndex> </ShortIndex>
384385
<ShortPayTenor> </ShortPayTenor>
385386
<SpreadOnShort> </SpreadOnShort>
@@ -394,22 +395,27 @@ \subsubsection{Tenor Basis Swap Conventions}
394395

395396
The meanings of the various elements in this node are as follows:
396397
\begin{itemize}
397-
\item LongIndex: The name of the long tenor Ibor index.
398-
\item ShortIndex: The name of the short tenor Ibor index.
399-
\item ShortPayTenor [Optional]: The frequency of payments on the short tenor Ibor leg. This is usually the same as the
400-
short tenor Ibor index's tenor. However, it can also be longer e.g.\ USD tenor basis swaps where the short tenor Ibor
401-
index is compounded and paid on the same frequency as the long tenor Ibor index. If not provided, this defaults to the
402-
short tenor Ibor index's tenor.
398+
\item LongIndex: The name of the long tenor Ibor index. In the case of basis swaps with equal tenor indexes (like overnight
399+
indexed vs overnight indexed basis swaps) it should be interpreted as the index of the received leg.
400+
\item LongPayTenor [Optional]: The frequency of payments on the LongIndex leg. This is usually the same as the LongIndex's
401+
tenor. However, it can also be longer, e.g. overnight indexed vs overnight indexed basis swaps that may be quarterly on
402+
both legs. If not provided, this defaults to the LongIndex's tenor.
403+
\item ShortIndex: The name of the short tenor Ibor or overnight index.
404+
\item ShortPayTenor [Optional]: The frequency of payments on the ShortIndex leg. This is usually the same as the
405+
ShortIndex's tenor. However, it can also be longer e.g.\ USD tenor basis swaps where the short tenor Ibor
406+
index is compounded and paid on the same frequency as the long tenor Ibor index, or overnight indexed vs overnight
407+
indexed basis swaps that may be quarterly on both legs. If not provided, this defaults to the ShortIndex's tenor.
403408
\item SpreadOnShort [Optional]: \emph{True} if the tenor basis swap quote has the spread on the short tenor Ibor index
404409
leg and \emph{False} if not. If not provided, this defaults to \emph{True}.
405410
\item IncludeSpread [Optional]: \emph{True} if the tenor basis swap spread is to be included when compounding is
406411
performed on the short tenor Ibor index leg and \emph{False} if not. If not provided, this defaults to \emph{False}.
407-
\item SubPeriodsCouponType [Optional]: This field can have the value \emph{Compounding} or \emph{Averaging} and it only
408-
applies when the frequency of payments on the short tenor Ibor leg does not equal the short tenor Ibor index's tenor. If
409-
\emph{Compounding} is specified, then the short tenor Ibor index is compounded and paid on the frequency specified in
410-
the \lstinline!ShortPayTenor! node. If \emph{Averaging} is specified, then the short tenor Ibor index is averaged and
411-
paid on the frequency specified in the \lstinline!ShortPayTenor! node. If not provided, this defaults to
412-
\emph{Compounding}.
412+
\item SubPeriodsCouponType [Optional]: This field can have the value \emph{Compounding} or \emph{Averaging}. It applies
413+
to Ibor vs OI and Ibor vs Ibor basis swaps when the frequency of payments on the short tenor leg does not equal the
414+
short tenor index's tenor. If \emph{Compounding} is specified, then the short tenor Ibor index is compounded and paid on
415+
the frequency specified in the \lstinline!ShortPayTenor! node. If \emph{Averaging} is specified, then the short tenor
416+
Ibor index is averaged and paid on the frequency specified in the \lstinline!ShortPayTenor! node. If not provided, this
417+
defaults to \emph{Compounding}. In the context of overnight indexed vs overnight indexed basis swaps this value will apply
418+
to both legs.
413419
\end{itemize}
414420

415421
%- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -948,6 +954,7 @@ \subsubsection{Commodity Future Conventions}
948954
<ValidContractMonths>
949955
<Month>...</Month>
950956
</ValidContractMonths>
957+
<OptionUnderlyingFutureConvention>...</OptionUnderlyingFutureConvention>
951958
</CommodityFuture>
952959
\end{minted}
953960
\caption{Commodity future conventions}
@@ -984,6 +991,7 @@ \subsubsection{Commodity Future Conventions}
984991
\item \lstinline!OptionBusinessDayConvention! [Optional]: The business day convention used to adjust the option expiry date to a good business day if \lstinline!OptionExpiryDay! is used.
985992
\item \lstinline!OptionExpiryLastWeekdayOfMonth! [Optional]: This node is used to indicate a date in a given month in the form of the last named weekday of that month e.g. last Wednesday. The node takes a weekday in the form of the first three characters of the weekday with the first character capitalised.
986993
\item \lstinline!OptionExpiryWeeklyDayOfTheWeek! [Optional]: This node is used to indicate a date in a given week in the form of the named weekday, e.g. Wednesday. The node takes a weekday in the form of the first three characters of the weekday with the first character capitalised. This node is mandatory for weekly expiring options. The node is not allowed to use with any other option contract frequency.
994+
\item \lstinline!OptionUnderlyingFutureConvention! [Optional]: Sometimes the next contract expiry, as specified in the convention, is not the correct option underlying. For example the base metals options expiries on the 1st Wedenesday of the contract month, and during the first 3 months there are daily future contracts available. The option underlying is not the future contract which matures on the option expiry but the one which matures on the 3rd Wednesday of the month. This field is referencing to an commodity future convention which specifies the correct expiry date for the underlying contract.
987995
\item \lstinline!FutureContinuationMappings! [Optional]: When building future curves, we may use market data that has a continuation expiry, i.e. \lstinline!c1!, \lstinline!c2!, etc. , as opposed to an explicit expiry date or tenor. In some cases, the continuation expiries coming from the market data provider may skip serial months and therefore we use the mapping here to map from the market data provider index to the relevant serial month.
988996
\item \lstinline!OptionContinuationMappings! [Optional]: When building option volatility structures, we may use market data that has a continuation expiry, i.e. \lstinline!c1!, \lstinline!c2!, etc. , as opposed to an explicit expiry date or tenor. In some cases, the continuation expiries coming from the market data provider may skip serial months and therefore we use the mapping here to map from the market data provider index to the relevant serial month. For example, for the Crude Palm Oil contract \lstinline!XKLS:FCPO!, the option expiry months are serial up to the 9th month and then alternate months. So, we would add a mapping from 10 to 11, 11 to 13 and so on so that the correct option expiry is arrived at when reading the market data quotes and constructing the option volatility structure.
989997
\item \lstinline!AveragingData! [Optional]: This node is needed for future contracts that are used in a piecewise commodity curve \lstinline!PriceSegment! and whose underlying is the average of other future prices or spot prices over a given period. An example is the ICE PMI power contract with contract specifications outlined \href{https://www.theice.com/products/6590369/PJM-Western-Hub-Real-Time-Peak-1-MW-Fixed-Price-Future}{here}. It is described in detail below.

0 commit comments

Comments
 (0)