Re: [Quickfix-developers] Quote Request Message FIX 4.2
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-02-25 14:31:54
|
In FIX 4.2, this message was changed so that multiple requests can be sent with one message. This means you need to use a repeating group. So for FIX 4.2, you would need to do something like this: org.quickfix.fix42.QuoteRequest quoteRequestMessage = new org.quickfix.fix42.QuoteRequest( new QuoteReqID("ID1"), 0 ); org.quickfix.fix42.QuoteRequest.NoRelatedSym group = new org.quickfix.fix42.QuoteRequest.NoRelatedSym(); Symbol symbol = new Symbol(symbolTextField.getText()); quoteRequestMessage.set(symbol); group.set( symbol ) quoteRequestMessage.add ( group ); You can add as many groups as you like to request additional symbols. You can get more info on using repeating groups here: http://quickfix.thoughtworks.com/documentation/repeating_groups.html You can also look at the XML data dictionaries to see the difference between the FIX 4.1 and 4.2 messages: http://quickfix.thoughtworks.com/xml.html --oren Alexandre Hoang <a....@ca...> wrote:Hello, Does anybody know how to create properly a Quote Request Message with the QuickFIX java API in FIX 4.2 ? The following is not OK: ------- not OK --------------------- org.quickfix.fix42.QuoteRequest quoteRequestMessage = new org.quickfix.fix42.QuoteRequest(); Symbol symbol = new Symbol(symbolTextField.getText()); quoteRequestMessage.set(symbol); -------- not OK -------------------- because the "QuoteRequest" class does not have a "set" method that takes a "Symbol" object as parameter. However, this is be possible with FIX 4.1 ! ----- OK ----------------------- org.quickfix.fix41.QuoteRequest quoteRequestMessage = new org.quickfix.fix41.QuoteRequest(); Symbol symbol = new Symbol(symbolTextField.getText()); quoteRequestMessage.set(symbol); ------ OK ---------------------- Thanks for your help, Best regards, Alexandre * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Confidentiality Notice : The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify pos...@ca... immediately by e-mail, and delete the original message. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more |