|
From: Toli K. <to...@ma...> - 2007-05-31 17:05:35
|
Rodolfo Is the error you are seeing on the "receiving" end, where you MarkedDataRequest goes to? If the receiver is also using Quickfix/J and has validation enabled (* UseDataDictionary=3DY)*, you'll be seeing this error unless you manually modify the appropriate DataDictionary file (such as FIX44.xml) to add the new field you've created. Just make sure to specify the DataDictionary to the modified file that contains your new field. That's what we do and it works for us. We did that in http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/main= /resources/FIX44-marketcetera.xml#L6725 to make it work with our exchange simulator at http://exchange.marketcetera.com On 5/31/07, Rodolfo Vasconcelos <rod...@lu...> wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > Hi everybody! > > I am trying to use an User Defined Tag, but it is failing. > > I want to set a string in a MarketDataRequest. > > quickfix.fix44.MarketDataRequest mdr =3D new > quickfix.fix44.MarketDataRequest( > new MDReqID(subscriptionID), new SubscriptionRequestType( > SubscriptionRequestType.SNAPSHOT ), > new MarketDepth(1)); > > quickfix.fix44.MarketDataRequest.NoRelatedSym noRelatedSymGroup; > for (int i =3D 0; i<symbols.size();i++) > { > noRelatedSymGroup =3D new quickfix.fix44.MarketDataRequest.NoRelatedS= ym > (); > noRelatedSymGroup.set(new Instrument(new Symbol(symbols.get(i)))); > mdr.addGroup(noRelatedSymGroup); > } > > *mdr.setField(new StringField(2345,pattern));* > > mdr.set( new NoMDEntryTypes(0)); > > this.send(mdr, sessionID); > > > I have tried tag numbers 9999, 1000, 6123, but always receive: Invalid Ta= g > number! > > <20070531-12:03:03, FIX.4.4:BDC1->BEVERLY, outgoing> (8=3D > FIX.4.4=019=3D110=0135=3DV=0134=3D59=0149=3DBDC1=0152=3D20070531-12:03:03= .859=0156=3DBEVERLY=01262=3D8=01263=3D0=01264=3D1=01267=3D0=012345=3DUDF=01= 146=3D2=0155=3DCISCO=0155=3DIBM=0110=3D053=01 > ) > <20070531-12:03:03, FIX.4.4:BDC1->BEVERLY, incoming> (8=3D > FIX.4.4=019=3D104=0135=3D3=0134=3D54=0149=3DBEVERLY=0152=3D20070531-12:03= :03.875=0156=3DBDC1=0145=3D59=01 > *58=3DInvalid tag* *number=01371=3D2345=013*72=3DV=01373=3D0=0110=3D188= =01) > > > I have tried type safe method too ( > http://www.quickfixj.org/quickfixj/usermanual/usage/user_defined_fields.h= tml) > but still not working. > > Anybody can help me? > > Tanks! > > My best regards, > Rodolfo Vasconcelos > --=20 Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. |