{{Quickfixn}} GetGroup for custom groups

Michael Lever mlever at pharofund.com
Fri Feb 21 13:31:12 PST 2014


I'm having trouble finding an example of how to read a custom group from an ExecutionReport message.
I've seen some other inquiries about this particular group but no final solution.

Given the following how would I read from this group?

Group in Execution Message:
<group name="NoRegulatoryTradeIDs" required="N">
   <field name="RegulatoryTradeID" required="N" />
   <field name="RegulatoryTradeIDSource" required="N" />
   <field name="RegulatoryTradeIDEvent" required="N" />
   <field name="RegulatoryTradeIDType" required="N" />
</group>

Field definitions:
<field number="1903" name="RegulatoryTradeID" type="STRING" />
<field number="1904" name="RegulatoryTradeIDEvent" type="INT" />
<field number="1905" name="RegulatoryTradeIDSource" type="STRING" />
<field number="1906" name="RegulatoryTradeIDType" type="INT" />
<field number="1907" name="NoRegulatoryTradeIDs" type="NUMINGROUP" />

Message content:
1907=1

1903=BBG0000000000B5307AA1C1464007D

1905=1KJTIIGC8Y

1904=0

1906=0


Code:
    String regTradeId1 = String.Empty;
    int noRegGrps = GetValueInt(execReport, 1907);  // returns 1
    if (noRegGrps > 0) {
        var regTradeIdGroup = execReport.GetGroup(1, 1907); // first group of 1907 - fails on GetGroup
        regTradeId1 = regTradeIdGroup.GetString(1903);
    }

Error: field not found for tag: 1907

Thanks,
Michael

Michael Lever
Pharo Management LLC
1370 Avenue of Americas
Suite 2603
New York, NY 10019
212-641-6707 (office)
917-434-4957 (mobile)

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140221/552de025/attachment-0001.htm>


More information about the Quickfixn mailing list