<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m having trouble finding an example of how to read a custom group from an ExecutionReport message.
<o:p></o:p></p>
<p class="MsoNormal">I’ve seen some other inquiries about this particular group but no final solution.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Given the following how would I read from this group?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Group in Execution Message:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">group</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">NoRegulatoryTradeIDs</span>"<span style="color:blue">
</span><span style="color:red">required</span><span style="color:blue">=</span>"<span style="color:blue">N</span>"<span style="color:blue">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"> <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">RegulatoryTradeID</span>"<span style="color:blue">
</span><span style="color:red">required</span><span style="color:blue">=</span>"<span style="color:blue">N</span>"<span style="color:blue"> /></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"> <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">RegulatoryTradeIDSource</span>"<span style="color:blue">
</span><span style="color:red">required</span><span style="color:blue">=</span>"<span style="color:blue">N</span>"<span style="color:blue"> /></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"> <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">RegulatoryTradeIDEvent</span>"<span style="color:blue">
</span><span style="color:red">required</span><span style="color:blue">=</span>"<span style="color:blue">N</span>"<span style="color:blue"> /></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"> <</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">RegulatoryTradeIDType</span>"<span style="color:blue">
</span><span style="color:red">required</span><span style="color:blue">=</span>"<span style="color:blue">N</span>"<span style="color:blue"> /><o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"></</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">group</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Field definitions:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">number</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">1903</span>"<span style="color:blue">
</span><span style="color:red">name</span><span style="color:blue">=</span>"<span style="color:blue">RegulatoryTradeID</span>"<span style="color:blue">
</span><span style="color:red">type</span><span style="color:blue">=</span>"<span style="color:blue">STRING</span>"<span style="color:blue"> />
</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">number</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">1904</span>"<span style="color:blue">
</span><span style="color:red">name</span><span style="color:blue">=</span>"<span style="color:blue">RegulatoryTradeIDEvent</span>"<span style="color:blue">
</span><span style="color:red">type</span><span style="color:blue">=</span>"<span style="color:blue">INT</span>"<span style="color:blue"> />
</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">number</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">1905</span>"<span style="color:blue">
</span><span style="color:red">name</span><span style="color:blue">=</span>"<span style="color:blue">RegulatoryTradeIDSource</span>"<span style="color:blue">
</span><span style="color:red">type</span><span style="color:blue">=</span>"<span style="color:blue">STRING</span>"<span style="color:blue"> /></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">number</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">1906</span>"<span style="color:blue">
</span><span style="color:red">name</span><span style="color:blue">=</span>"<span style="color:blue">RegulatoryTradeIDType</span>"<span style="color:blue">
</span><span style="color:red">type</span><span style="color:blue">=</span>"<span style="color:blue">INT</span>"<span style="color:blue"> /></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">number</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">"<span style="color:blue">1907</span>"<span style="color:blue">
</span><span style="color:red">name</span><span style="color:blue">=</span>"<span style="color:blue">NoRegulatoryTradeIDs</span>"<span style="color:blue">
</span><span style="color:red">type</span><span style="color:blue">=</span>"<span style="color:blue">NUMINGROUP</span>"<span style="color:blue"> />
<o:p></o:p></span></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Message content:<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="270" style="width:202.2pt;margin-left:-.75pt;border-collapse:collapse">
<tbody>
<tr style="height:15.0pt">
<td width="270" nowrap="" valign="bottom" style="width:202.2pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal"><span style="color:black">1907=1<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="270" nowrap="" valign="bottom" style="width:202.2pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal"><span style="color:black">1903=BBG0000000000B5307AA1C1464007D<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="270" nowrap="" valign="bottom" style="width:202.2pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal"><span style="color:black">1905=1KJTIIGC8Y<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="270" nowrap="" valign="bottom" style="width:202.2pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal"><span style="color:black">1904=0<o:p></o:p></span></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="270" nowrap="" valign="bottom" style="width:202.2pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal"><span style="color:black">1906=0<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Code:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:#2B91AF">String</span> regTradeId1 = <span style="color:#2B91AF">
String</span>.Empty; <o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> <span style="color:blue">int</span> noRegGrps = GetValueInt(execReport, 1907);
<span style="color:green">// returns 1<o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">if</span> (noRegGrps > 0) {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">
<span style="color:blue">var</span> regTradeIdGroup = execReport.GetGroup(1, 1907);
<span style="color:green">// first group of 1907 - fails on GetGroup</span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> regTradeId1 = regTradeIdGroup.GetString(1903);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">Error: field not found for tag: 1907<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks, <o:p></o:p></p>
<p class="MsoNormal">Michael<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Michael Lever<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#953735">Pharo Management LLC<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#953735">1370 Avenue of Americas<br>
Suite 2603<br>
New York, NY 10019<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#953735">212-641-6707 (office)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#953735">917-434-4957 (mobile)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<BR>
<i>This message contains information intended for the exclusive use of the individual or entity to whom it is addressed. This email may contain information which is privileged and confidential. If you are not the intended recipient of this message, please notify the sender as soon as possible and do not show the message to any third party. Please do not copy, disclose or distribute the information contained within.</i>
<BR>
<BR>
</body>
</html>