@@ -52,6 +52,7 @@ \subsubsection{Generic Total Return Swap / Contract for Difference (CFD)}
5252 \item Bond: See \ref {ss:bond }, the trade data is given in a BondData sub node.
5353 \item ForwardBond: See \ref {ss:BondForward_refdata }, the trade data is given in a ForwardBondData sub node.
5454 \item CBO: See \ref {ss:CBOData }, the trade data is given in a CBOData sub node.
55+ \item CommodityPosition: See \ref {ss:commodity_position }, the trade data is given in a CommodityPositionData sub node.
5556 \item ConvertibleBond: See \ref {ss:convertible_bond }, the trade data is given in a ConvertibleBondData sub
5657 node. When using reference data, a TRS on a convertible bond can also be captured as a TRS on a bond, i.e. there is
5758 no need to distinguish between a TRS on a Bond and a TRS on a convertible Bond in this case, the pricer will figure
@@ -416,6 +417,33 @@ \subsubsection{Generic Total Return Swap / Contract for Difference (CFD)}
416417\label {lst:trsdata4 }
417418\end {listing }
418419
420+ \begin {listing }[H]
421+ % \hrule\medskip
422+ \begin {minted }[fontsize=\footnotesize ]{xml}
423+ <TotalReturnSwapData>
424+ <UnderlyingData>
425+ <Trade>
426+ <TradeType>CommodityPosition</TradeType>
427+ <CommodityPositionData>
428+ <!-- basket price = quantity x sum_i ( weight_i x equityPrice_i x fx_i ) -->
429+ <Quantity>1000</Quantity>
430+ <Underlying>
431+ <Type>Commodity</Type>
432+ <Name>RIC:.BCOM</Name>
433+ <Weight>1.0</Weight>
434+ <PriceType>Spot</PriceType>
435+ </Underlying>
436+ </CommodityPositionData>
437+ </Trade>
438+ </UnderlyingData>
439+ <!-- omitting ReturnData, FundingData, AdditionalCashflowData -->
440+ </TotalReturnSwapData>
441+ </Trade>
442+ \end {minted }
443+ \caption {Generic Total Return Swap on a commodity index underlying}
444+ \label {lst:trsdata5 }
445+ \end {listing }
446+
419447\begin {listing }[H]
420448% \hrule\medskip
421449\begin {minted }[fontsize=\footnotesize ]{xml}
0 commit comments