|
From: Vamsi P. <vam...@we...> - 2018-06-28 08:01:20
|
Hi Team, Thanks for you sample code.before implementing that ,the callback method *"fromApp" *is not calling.i attached all two java files of my code .please check what was wrong? Plesase find the attachment.Thanks in advance.Please help me. On Wed, Jun 27, 2018 at 7:13 PM, Colin DuPlantis <co...@ma...> wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > resending after trimming length: > > > On 06/27/2018 06:42 AM, Colin DuPlantis wrote: > >> Here's a code snippet we use to retrieve the price from a market data >> message. I've also included a few helper methods. I omitted a lot of code >> that isn't relevant to your question. >> >> List<Group> mdEntries = messageFactory.getMdEntriesFro >> mMessage(message); >> for(Group mdEntry : mdEntries) { >> char entryType = mdEntry.getChar(quickfix.field >> .MDEntryType.FIELD); >> switch(entryType) { >> case quickfix.field.MDEntryType.BID: >> mdEntry.getDecimal(quickfix.field.MDEntryPx.FIELD); >> >> /** >> * Get the MDEntry groups from the given message. >> * >> * @param inMessage a <code>Message</code> value >> * @return a <code>List<:Group></code> value >> * @throws FieldNotFound if the groups could not be extracted >> */ >> public List<Group> getMdEntriesFromMessage(Message inMessage) >> throws FieldNotFound >> { >> List<Group> mdEntries = Lists.newArrayList(); >> int noMdEntries = inMessage.getInt(quickfix.fiel >> d.NoMDEntries.FIELD); >> for(int i=1;i<=noMdEntries;i++) { >> Group mdEntryGroup = createGroup(inMessage.getHeade >> r().getString(quickfix.field.MsgType.FIELD), >> quickfix.field.NoMDEntries.FIELD); >> mdEntryGroup = inMessage.getGroup(i, >> mdEntryGroup); >> mdEntries.add(mdEntryGroup); >> } >> return mdEntries; >> } >> >> /** Creates a group based on the specified container message and >> group id */ >> public Group createGroup(String msgType, int groupID) >> { >> return msgFactory.create(beginString, msgType, groupID); >> } >> > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > -- Regards, Vamsi Krishna Pinnamaneni The information contained in this message may be confidential and is intended for the addressee only. If you don't think this email is meant for you, please let us know. Do not copy or forward the information it contains, and delete this email from your system. Any personal views or opinions are those of the author and do not necessarily represent those of Wealth Objects Limited. This email does not create or vary any contractual obligations between Wealth Objects Limited and the addressee. |