Skip to content

Commit 617e466

Browse files
committed
Merge remote-tracking branch 'github/textual-fixes' into github-198
2 parents 1643c1a + 62ee399 commit 617e466

40 files changed

Lines changed: 52 additions & 52 deletions

Docs/ScriptedTrade/docs/index.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
general the equity name can be represented using the string representation {IdentifierType}:{Name}:{Currency}:{Exchange}
6262
for the underlying. \\
6363
For additional information on the fx index format see \ref{tab:fxindex_data}. \\
64-
For additional information on the commondity names see \ref{tab:commodity_data}.
64+
For additional information on the commodity names see \ref{tab:commodity_data}.
6565
\fi
6666

6767
Within the scripting framework there are additional ways to reference commodity indices in a more dynamical fashion:
@@ -76,7 +76,7 @@
7676
\begin{itemize}
7777
\item a variable of the form \verb+COMM-{Name}#N+, the index will be resolved to the $N+1$th future with expiry greater than
7878
ObservationDate for the given commodity underlying, $N\geq0$. The parameter $N$ corresponds to the field
79-
\verb+FutureMonthOffset+ commonly used in coomodity trade xml schemas
79+
\verb+FutureMonthOffset+ commonly used in commodity trade xml schemas
8080
\item the above form can take one or two additional parameters \verb+COMM-{Name}#N#D+ or \verb+COMM-{Name}#N#D#{Cal}+ where
8181
$D$ corresponds to \verb+DeliveryRollDays+ and \verb+Cal+ is the calendar used to roll the observation date forward
8282
before the next future expiry is looked up. If \verb+Cal+ is not given, it defaults to the null calendar (no

Docs/UserGuide/conventions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,14 +984,14 @@ \subsubsection{Commodity Future Conventions}
984984
\item \lstinline!IsAveraging! [Optional]: The allowable values are \lstinline!true! and \lstinline!false!. This node indicates if the future contract is based on the average commodity price of the contract period. If omitted, it defaults to \lstinline!false!.
985985
\item \lstinline!OptionExpiryOffset! [Optional]: The number of business days that the option expiry date is before the future expiry date. Any non-negative integer is allowed here. If omitted, this takes a default value of zero and the expiry date of an option on the future contract is assumed to equal the expiry date of the future contract.
986986
\item \lstinline!ProhibitedExpiries! [Optional]: This node can be used to specify explicit dates which are not allowed as future contract expiry dates or as option expiry dates. A useful example of this is the ICE Brent contract which has the following constraint on expiry dates: \emph{If the day on which trading is due to cease would be either: (i) the Business Day preceding Christmas Day, or (ii) the Business Day preceding New Year’s Day, then trading shall cease on the next preceding Business Day}. Each \lstinline!Date! node can take optional attributes. The default values of these attributes is shown in Listing \ref{lst:commodity_future_conventions}. The \lstinline!convention! attribute accepts a valid business day convention in the list \lstinline!Preceding!, \lstinline!ModifiedPreceding!, \lstinline!Following! and \lstinline!ModifiedFollowing!. This \lstinline!convention! indicates how the future expiry date should be adjusted if it lands on the prohibited expiry \lstinline!Date!. If omitted, the default is \lstinline!Preceding!. Both \lstinline!Preceding! and \lstinline!ModifiedPreceding! indicate that the next available business day before the date is tested. \lstinline!Following! and \lstinline!ModifiedFollowing! indicate that the next available business day after the date is tested. The \lstinline!optionConvention! attribute allows the same values and behaves in the same way to determine how the option expiry date should be adjusted if it lands on the prohibited expiry \lstinline!Date!. The \lstinline!forFuture! and \lstinline!forOption! boolean attributes enable the prohibited expiry to apply only for the future expiry date or the option expiry date respectively by setting the value to \lstinline!false!.
987-
\item \lstinline!OptionExpiryMonthLag! [Optional]: The allowable values are any integer. This value indicates the number of months from the month containing the option expiry date to the month containing the expiry date. If 0, the commodity future option contract expiry date is anchored in the same month as the commodity future contract expiry date. If the value of \lstinline!OptionExpiryMonthLag! is $n > 0$, the commodity option future contract expires in the $n$-th month prior to the commodity future contract expiry month. If the value of \lstinline!OptionExpiryMonthLag! is $n < 0$, the commodity option future contract expires in the $n$-th month after the the commodity future contract expiry month. The value of \lstinline!OptionExpiryMonthLag! should be equal to \lstinline!ExpiryMonthLag! when \lstinline!OptionExpiryOffset! is used. The \lstinline!OptionExpiryMonthLag! is rarely used. An example is the Crude Palm Oil contract \lstinline!XKLS:FCPO! where the future contract expiry is in the delivery month and the option expiry is in the month that is 2 months prior to this. In this case, \lstinline!OptionExpiryMonthLag! is 2. If omitted, \lstinline!OptionExpiryMonthLag! defaults to 0.
987+
\item \lstinline!OptionExpiryMonthLag! [Optional]: The allowable values are any integer. This value indicates the number of months from the month containing the option expiry date to the month containing the expiry date. If 0, the commodity future option contract expiry date is anchored in the same month as the commodity future contract expiry date. If the value of \lstinline!OptionExpiryMonthLag! is $n > 0$, the commodity option future contract expires in the $n$-th month prior to the commodity future contract expiry month. If the value of \lstinline!OptionExpiryMonthLag! is $n < 0$, the commodity option future contract expires in the $n$-th month after the commodity future contract expiry month. The value of \lstinline!OptionExpiryMonthLag! should be equal to \lstinline!ExpiryMonthLag! when \lstinline!OptionExpiryOffset! is used. The \lstinline!OptionExpiryMonthLag! is rarely used. An example is the Crude Palm Oil contract \lstinline!XKLS:FCPO! where the future contract expiry is in the delivery month and the option expiry is in the month that is 2 months prior to this. In this case, \lstinline!OptionExpiryMonthLag! is 2. If omitted, \lstinline!OptionExpiryMonthLag! defaults to 0.
988988
\item \lstinline!OptionExpiryDay! [Optional]: This node can contain any integer in the range $1,\ldots,31$ indicating the day of the month on which an option expiry date is anchored. A value of 31 will guarantee that the last day in the month is used a base date. If omitted, this is not used. Setting this field takes precedence over \lstinline!OptionExpiryOffset!.\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.
989989
\item \lstinline!OptionContractFrequency! [Optional]: This node indicates the frequency of the commodity future options if it differs from the frequency of the underlying future contract. The value here is usually \lstinline!Monthly!
990990
\item \lstinline!OptionNthWeekday! [Optional]: This node has the elements shown in Listing \ref{lst:nth_weekday_node}. This node is used to indicate a date in a given month in the form of the n-th named weekday of that month e.g. 3rd Wednesday. The allowable values for \lstinline!Nth! are ${1,2,3,4}$. The \lstinline!Weekday! node takes a weekday in the form of the first three characters of the weekday with the first character capitalised.
991991
\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.
992992
\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.
993993
\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.
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 Wednesday 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.
995995
\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.
996996
\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.
997997
\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.

Docs/UserGuide/parameterisation/ore.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ \subsubsection{Setup}
5555
5656
Parameter {\tt logMask} determines the verbosity of log file output. Log messages are
5757
internally labelled as Alert, Critical, Error, Warning, Notice, Debug, associated with logMask values 1, 2, 4, 8, ..., 64.
58-
The logMask allows filtering subsets of these categories and controlling the verbosity of log file output\footnote{by bitwise comparison of the the external logMask value with each message's log level}. LogMask 255 ensures maximum verbosity. \\
58+
The logMask allows filtering subsets of these categories and controlling the verbosity of log file output\footnote{by bitwise comparison of the external logMask value with each message's log level}. LogMask 255 ensures maximum verbosity. \\
5959
6060
When ORE starts, it will initialise today's market, i.e. load market data, fixings and dividends, and build all term
6161
structures as specified in {\tt todaysmarket.xml}. Moreover, ORE will load the trades in {\tt portfolio.xml} and link

Docs/UserGuide/tradecomponents/commodityfloatingleg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ \subsubsection{Commodity Floating Leg Data}
143143
\begin{itemize}
144144
\item \emph{PerCalculationPeriod}: This indicates that quantitie(s) as given are for the full calculation period and that no multiplication or alteration is required. This is the default setting if this node is omitted.
145145
\item \emph{PerPricingDay}: This indicates that the quantitie(s) are to be considered per pricing date. In general, this can be seen on averaging contracts where the quantity provided must be multiplied by the number of pricing dates in the averaging period to give the quantity applicable for the full calculation period i.e.\ the quantity to which the average price over the period is applied.
146-
\item \emph{PerHour}: This indicates that quantitie(s) are to be considered per hour. This is common in the electricity markets. The quantity then must be multiplied by the hours per day to give the quantity for a given pricing date. Also, if the contract is averaging, the resulting daily amount is multiplied by the number of pricing dates in the period to give the quantity for the full calculation period. Note that the hours per day may be specified in the the \lstinline!HoursPerDay! node directly. If it is omitted, it is looked up in the conventions associated with the commodity. If it is not found there and \emph{PerHour} is used, an exception is thrown during trade building.
146+
\item \emph{PerHour}: This indicates that quantitie(s) are to be considered per hour. This is common in the electricity markets. The quantity then must be multiplied by the hours per day to give the quantity for a given pricing date. Also, if the contract is averaging, the resulting daily amount is multiplied by the number of pricing dates in the period to give the quantity for the full calculation period. Note that the hours per day may be specified in the \lstinline!HoursPerDay! node directly. If it is omitted, it is looked up in the conventions associated with the commodity. If it is not found there and \emph{PerHour} is used, an exception is thrown during trade building.
147147
\item \emph{PerCalendarDay}: This indicates that quantitie(s) are to be considered per calendar day in the period. In other words, the quantity provided is multiplied by the number of calendar days in the period to give the quantity applicable for the full calculation period.
148148
\item \emph{PerHourAndCalendarDay}: This indicates that quantitie(s) are to be considered per hour and per calendar day in the period. In other words, the quantity provided is multiplied by the number of calendar days and number of hours per day in the period to give the quantity applicable for the full calculation period. The number of hours per period is corrected by daylight saving hours as specified in the conventions of the commodity.
149149
\end{itemize}

Docs/UserGuide/tradecomponents/cpileg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ \subsubsection{CPI Leg Data}
5858

5959
\item SubtractInflationNotional [Optional]: A flag indicating whether
6060
the non-inflation adjusted notional amount should be subtracted from
61-
the the final inflation-adjusted notional exchange at maturity.
61+
the final inflation-adjusted notional exchange at maturity.
6262
Note that the final coupon payment is not affected by this flag. \\
6363
Final notional payment if \emph{true}: $N \,(I(T)/I_0-1)$. \\
6464
Final notional payment if \emph{false}: $N \,I(T)/I_0$

Docs/UserGuide/tradecomponents/digitalcmsleg.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ \subsubsection{Digital CMS Leg Data}
6161
\lstinline!CMSLegData! block is supported and can be used to separate the digital option payoff from the underlying CMS coupon.
6262
\item CallPosition: Specifies whether the call option position is long or short.
6363
\item IsCallATMIncluded: inclusion flag on the call payoff if the call option ends at-the-money
64-
\item CallStrikes: strike rate for the the call option
64+
\item CallStrikes: strike rate for the call option
6565
\item CallPayoffs: digital call option payoff rate. If included the option is cash-or-nothing, if excluded the option is asset-or-nothing
6666
\item PutPosition: Specifies whether the put option position is long or short.
6767
\item IsPutATMIncluded: inclusion flag on the put payoff if the put option ends at-the-money
68-
\item PutStrikes: strike rate for the the put option
68+
\item PutStrikes: strike rate for the put option
6969
\item PutPayoffs: digital put option payoff rate. If included the option is cash-or-nothing, if excluded the option is asset-or-nothing
7070
\end{itemize}

Docs/UserGuide/tradecomponents/digitalcmsspreadleg.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ \subsubsection{Digital CMS Spread Leg Data}
6161
\lstinline!CMSSpreadLegData! block is supported and can be used to separate the digital option payoff from the underlying CMS Spread coupon.
6262
\item CallPosition: Specifies whether the call option position is long or short.
6363
\item IsCallATMIncluded: inclusion flag on the call payoff if the call option ends at-the-money
64-
\item CallStrikes: strike rate for the the call option
64+
\item CallStrikes: strike rate for the call option
6565
\item CallPayoffs: digital call option payoff rate. If included the option is cash-or-nothing, if excluded the option is asset-or-nothing
6666
\item PutPosition: Specifies whether the put option position is long or short.
6767
\item IsPutATMIncluded: inclusion flag on the put payoff if the put option ends at-the-money
68-
\item PutStrikes: strike rate for the the put option
68+
\item PutStrikes: strike rate for the put option
6969
\item PutPayoffs: digital put option payoff rate. If included the option is cash-or-nothing, if excluded the option is asset-or-nothing
7070
\end{itemize}

Docs/UserGuide/tradecomponents/underlying.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ \subsubsection{Underlying}
227227
Allowable values: \emph{Spot}, \emph{FutureSettlement}. Mandatory when \lstinline!Type! is \emph{Commodity} .
228228

229229
\item \lstinline!FutureMonthOffset! [Optional]:
230-
Only valid when \lstinline!Type! is \emph{Commodity}. Only relevant for the \emph{FutureSettlement} price type, in which case the the $N+1$th future with
230+
Only valid when \lstinline!Type! is \emph{Commodity}. Only relevant for the \emph{FutureSettlement} price type, in which case the $N+1$th future with
231231
expiry greater than ObservationDate for the given commodity underlying will be referenced.
232232

233233
Allowable values: An integer. Mandatory for when \lstinline!Type! is \emph{Commodity} and \lstinline!PriceType! is \emph{FutureSettlement}.

0 commit comments

Comments
 (0)