Re: [Quickfix-developers] Non-standard repeating group in TradingSessionStatus message
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-05-11 22:52:52
|
You need to pass a couple of field numbers to the constructor. The first is the group count field, 146 in this case. The second is the first field of the repeating group, which is also used as the group delimiter, or 55 in this case. So... Group group = new Group(); becomes Group group = new Group( 146, 55 ) --oren ----- Original Message ----- From: "Francis Gingras" <fr...@at...> To: <qui...@li...> Sent: Thursday, May 11, 2006 1:12 PM Subject: [Quickfix-developers] Non-standard repeating group in TradingSessionStatus message > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hello all, > > I've been trying to parse a 4.4 TradingSessionStatus message with > repeating > groups which are instrument blocks. > > 8=FIX.4.49=246435=h49=target56=Demo134=46252=20060511-17:59:13335=23 > 36=clearing625=U100D1339=2325=N340=258=Market is closed. Any trading > functionality is not > available.146=2255=USD/CHF15=USD561=19003=10.459004=-10.959006=0.019 > 000=49001=49002=0.00019005=455=NZD/JPY15=NZD561=19003=12.259004=-13. > 259006=0.019000=199001=29002=0.019005=1955=CAD/JPY15=CAD561=19003=9 > .659004=-10.159006=0.019000=189001=29002=0.019005=1855=EUR/CAD15=EUR > > I work with the latest QF sources and .NET 2. > > int groups = message.getInt(new NoRelatedSym().getField()); > for (uint i = 1; i < groups; i++) > { > Group group = new Group(); > message.getGroup(i, group); > //This doesn't work because Group needs a parameter (what should it be?). > How do I get the group? > } > > Thanks, > > Francis > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |