RE: [Quickfix-developers] NoRelatedSym Class
Brought to you by:
orenmnero
From: Bishop, B. <Bar...@gs...> - 2003-04-25 15:29:59
|
Hi, This is the way I've done this in my java application. Put the values in the group and then add the group to the message. org.quickfix.fix42.QuoteRequest message = new org.quickfix.fix42.QuoteRequest(); message.set( new org.quickfix.field.QuoteReqID( requestId ) ); message.set( new org.quickfix.field.NoRelatedSym( 1 ) ); org.quickfix.fix42.QuoteRequest.NoRelatedSym groupNoRelatedSym = new org.quickfix.fix42.QuoteRequest.NoRelatedSym(); groupNoRelatedSym.set( new org.quickfix.field.IDSource( request.idSource ) ); groupNoRelatedSym.set( new org.quickfix.field.SecurityType( request.securityType ) ); groupNoRelatedSym.set( new org.quickfix.field.SecurityExchange( request.exchange ) ); groupNoRelatedSym.set( new org.quickfix.field.Currency( request.currency ) ); groupNoRelatedSym.set( new org.quickfix.field.Symbol( request.symbol ) ); groupNoRelatedSym.set( new org.quickfix.field.SecurityID( request.securityId ) ); groupNoRelatedSym.set( new org.quickfix.field.Side( chSide.charValue() ) ); groupNoRelatedSym.set( new org.quickfix.field.OrderQty( request.orderQuantity.doubleValue() ) ); groupNoRelatedSym.set( new org.quickfix.field.FutSettDate( request.futureSettlementDate ) ); groupNoRelatedSym.set( new org.quickfix.field.TransactTime( request.transactTime ) ); message.addGroup( groupNoRelatedSym ); All the best, barry -----Original Message----- From: Jon Dahl [mailto:jd...@Li...] Sent: 25 April 2003 15:58 To: qui...@li... Subject: [Quickfix-developers] NoRelatedSym Class Hello All, I have been try to code a QuoteRequest message and have run into a snag with the NoRelatedSym class. What is the best way to set the fields in this class? For example I want to set the Symbol, StrikePrice and some other fields in that class. Anyone give me a pointer on how to set those fields? Thanks, JD |