{{Quickfixn}} Really need help in crucial issue
Nirjhar Jain
nirjhar.jain at commdel.net
Tue Nov 19 02:05:57 PST 2013
Hi All,
Tutorial tells us to read groups from the message as mentioned below, but
they do not mention where to do this coding. The next(message); function in
session.cs class is generating reject message and giving reason tag appears
more than once in message, as my received msg(Type=W) contains tag=268
repeating group.
Please help me in using the provided info.
Reading Groups
To read a group from a message, we supply the tag of the group field and the
index of the group:
var sidesGrp1 = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();
sidesGrp1 = tcr.GetGroup(1, Tags.NoSides);
var sidesGrp2 = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();
sidesGrp2 = tcr.GetGroup(2, Tags.NoSides);
Group indexes start at 1.
To iterate the groups, we use a for loop with the value of the group field:
var noSidesGrp = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();
for(int grpIndex = 1; grpIndex<= message.GetInt(Tags.NoSides); grpIndex +=
1)
{
noSidesGrp = message.GetGroup(grpIndex, Tags.NoSides);
}
I will be very thankful to you.
Thanks & Regards,
Nirjhar Jain
Software Engineer
Mob: +919717976519
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131119/01f61df1/attachment-0001.htm>
More information about the Quickfixn
mailing list