|
From: stacyann_1 <sta...@gs...> - 2007-06-27 20:23:09
|
Thanks Toli. I had a couple of questions about that.. maybe you would know? The sample code goes like this NoMDEntries noMDEntries = new NoMDEntries(); message.get(noMDEntries); quickfix.fix42.MarketDataSnapshotFullRefresh.NoMDEntries group = new quickfix.fix42.MarketDataSnapshotFullRefresh.NoMDEntries(); How come noMDEntries is defined as NoMDEntries but group is defined as quickfix.fix42.MarketDataSnapshotFullRefresh.NoMDEntries? Does it need to be this way? Also is the above message defined as a Message? Mine is also, but 'get' is not a valid method. I was previously using getField, but I'm not sure that is correct here. I was hoping I could somehow avoid iteration to see which PartId I care about, but it doesn't seem like that is possible. Thanks, Stacy toli wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Stacy, > > Do you have a NoPartyIDs tag (453) somewhere in your message? > If that's the case, you are looking at the Parties repeating group, > and you can use the sample code form > http://www.quickfixj.org/quickfixj/usermanual/usage/repeating_groups.html > to see how to read data from repeating groups. > > Here's the link to the Parties block in the FIX4.4 spec: > http://www.btobits.com/fixopaedia/fixdic44/bd0e-Parties.html > > You can also see the real-life examples of extracting repeating groups > in the Marketcetera Platform code too: > http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/main/java/org/marketcetera/quickfix/FIXValueExtractor.java#L31 > and the corresponding test: > http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/test/java/org/marketcetera/quickfix/FIXValueExtractorTest.java#L67 > > hope this helps > > On 6/27/07, stacyann_1 <sta...@gs...> wrote: >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> I'm having problems finding documentation to explain how to do this: >> >> The message that is being sent to me has multiple >> PartyId/PartyIdSource/PartyRole fields. For example: >> 448=SSNY 447=D 452=1 448=SMARCASSOLI:4784543 447=D 452=11 >> 448=TEST, TEST & CO. 447=D 452=13 10=192 >> >> How can I code to specifically retrieve the PartyId associated with >> PartyRole of 11? >> >> Thanks, >> Stacy >> -- > > > -- > Toli Kuznets > http://www.marketcetera.com: Open-Source Trading Platform > download.run.trade. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > -- View this message in context: http://www.nabble.com/Multiple-PartyId%27s-tf3990055.html#a11331862 Sent from the QuickFIX/J mailing list archive at Nabble.com. |