Skip to content

Commit 5f23620

Browse files
rolandlichtersjenkins
authored andcommitted
Merge remote-tracking branch 'origin/master' into QPR-11777
1 parent 78a9750 commit 5f23620

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Docs/UserGuide/tradedata/totalReturnSwap.tex

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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}

Docs/UserGuide/userguide.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6018,7 +6018,6 @@ \subsection{Calendar Adjustment: {\tt calendaradjustment.xml}}\label{sec:calenda
60186018
\input{tradedata/cbodata.tex}
60196019

60206020
\input{tradedata/compositetrade}
6021-
\input{tradedata/totalReturnSwap}
60226021

60236022
\input{tradedata/creditdefaultswap}
60246023
\input{tradedata/indexcds}
@@ -6035,6 +6034,8 @@ \subsection{Calendar Adjustment: {\tt calendaradjustment.xml}}\label{sec:calenda
60356034
\input{tradedata/commodityvarianceswap}
60366035
\input{tradedata/commodityposition}
60376036

6037+
\input{tradedata/totalReturnSwap}
6038+
60386039
%\include{tradecomponents}
60396040
\input{tradecomponents/tradecomponentsintro}
60406041
\input{tradecomponents/optiondata}

0 commit comments

Comments
 (0)