|
1 | | - |
2 | 1 | \subsubsection{Commodity Option} |
3 | 2 | \label{ss:input_commodity_option} |
4 | 3 |
|
@@ -101,3 +100,61 @@ \subsubsection{Commodity Digital Option} |
101 | 100 | \mbox{Digital Put} = \frac{\mbox{Payoff}}{\Delta} \times \left( \mbox{Put}(K+ \Delta/2) - \mbox{Put}(K- \Delta/2) \right) |
102 | 101 | \end{align*} |
103 | 102 | so that the long digital option has positive value in both cases. The strike spread $\Delta$ used here is set to 1\% of strike $K$. |
| 103 | + |
| 104 | +\subsubsection{Commodity Spread Option} |
| 105 | +\label{ss:input_commodity_spread_option} |
| 106 | + |
| 107 | +A commodity Spread Option is represented with trade type \emph{CommoditySpreadOption} and a corresponding |
| 108 | +\lstinline!CommoditySpreadOptionData! node. |
| 109 | + |
| 110 | +The \lstinline!CommoditySpreadOptionData! node is the trade data container for the \emph{CommoditySpreadOption} trade type. |
| 111 | +The structure of a \lstinline!CommoditySpreadOptionData! node for a commodity option is shown in Listing \ref{lst:com_s_option_data}. |
| 112 | + |
| 113 | +The \lstinline!CommoditySpreadOptionData! include exactly two \lstinline!LegData! nodes of type \emph{CommodityFloating}. |
| 114 | +Details on these are described in \ref{ss:commodityfloatingleg}. |
| 115 | +The resulting Legs must produce the same amount of cashflows (i.e.~the number of \emph{calculation period}s must be the same for the long and short positions). |
| 116 | +If the number of cashflows per leg is 1, this trade represents a vanilla commodity spread option. |
| 117 | +If is greater than 1, it represents a multi-period commodity spread option. |
| 118 | +The first one represents the long position on the relevant asset, and the \lstinline!isPayer! must be set to \emph{true}. |
| 119 | +The second one represents the short position on the relevant asset, and the \lstinline!isPayer! must be set to \emph{false}. |
| 120 | + |
| 121 | +Within the two \lstinline!LegData!, the \lstinline!Quantity! node has must be equal. |
| 122 | +If the underlying contracts are quoted using different units (e.g. barrels vs liters), the \lstinline!Gearing! node must be used to account for this difference. |
| 123 | + |
| 124 | + |
| 125 | +Other than the two legs, the following nodes complete the \lstinline!CommoditySpreadOptionData! container: |
| 126 | +\begin{itemize} |
| 127 | + \item \lstinline!ExerciseDate!: the exercise date. Allowable values: See Date in Table \ref{tab:allow_stand_data}. |
| 128 | + \item \lstinline!SpreadStrike!: The strike value for the spread. Allowable values: Any real number. |
| 129 | + \item \lstinline!OptionType! [Optional]: The allowable values are \emph{Call} or \emph{Put}. If not provided, default value is \emph{Call}. |
| 130 | + \item \lstinline!SettlementDate! [Optional]: A date in which the trade is settled. |
| 131 | +Allowable values: This should be a valid date as outlined in Table \ref{tab:allow_stand_data}. If not provided, it is assumed that the trade is settled on the \lstinline!ExerciseDate!. |
| 132 | + \item \lstinline!Currency!: The settlement currency for the trade. \\ |
| 133 | + Allowable values: See \lstinline!Currency! in Table \ref{tab:allow_stand_data}. |
| 134 | +\end{itemize} |
| 135 | + |
| 136 | +\begin{listing}[H] |
| 137 | +%\hrule\medskip |
| 138 | + \begin{minted}[fontsize=\footnotesize]{xml} |
| 139 | +<CommoditySpreadOptionData> |
| 140 | + <LegData> |
| 141 | + <LegType>CommodityFloating</LegType> |
| 142 | + <IsPayer>true<IsPayer> |
| 143 | + ... |
| 144 | + </LegData> |
| 145 | + <LegData> |
| 146 | + <LegType>CommodityFloating</LegType> |
| 147 | + <IsPayer>false<IsPayer> |
| 148 | + ... |
| 149 | + </LegData> |
| 150 | + <ExerciseDate>2022-12-25</ExerciseDate> |
| 151 | + <Quantity>1000</Quantity> |
| 152 | + <SpreadStrike>2.3</SpreadStrike> |
| 153 | + <OptionType>Call</OptionType> |
| 154 | + <SettlmentDate>2022-12-31</SettlementDate> |
| 155 | + <Currency>USD</Currency> |
| 156 | +</CommoditySpreadOptionData> |
| 157 | + \end{minted} |
| 158 | + \caption{Commodity Option data} |
| 159 | + \label{lst:com_s_option_data} |
| 160 | +\end{listing} |
0 commit comments