RE: [Quickfix-developers] TradeCaptureReport problems
Brought to you by:
orenmnero
|
From: Shepheard, T. \(London\) <Tob...@ml...> - 2006-03-01 11:36:40
|
You're using a generic Group object to set the NoSides group. Use the NoSides group explicitly instead. quickfix.fix44.TradeCaptureReport.NoSides group =3D new quickfix.fix44.TradeCaptureReport.NoSides(); QuickFIX will automatically set the right number of sides in the message for you, so there's no need to call=20 message.setField(new NoSides(NoSides.ONE_SIDE)); Regards Toby -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of SPG Sent: 01 March 2006 11:25 To: qui...@li... Subject: Re: [Quickfix-developers] TradeCaptureReport problems QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html OK, Here is an update.. But still getting errors: Code:=20 private Message createDummyFixMessage() { TradeReportID id =3D new TradeReportID("123"); PreviouslyReported prevRpt =3D new PreviouslyReported(false); LastQty lstQty =3D new LastQty(10000.0d); LastPx lstPx =3D new LastPx(12.13d); TradeDate tradeDate =3D new TradeDate(new Date().toString()); TransactTime time =3D new TransactTime(new Date()); ExecType execType =3D new ExecType('F'); Symbol symbol =3D new Symbol("FI.REUTERS"); TradeCaptureReport message =3D new TradeCaptureReport(id, prevRpt, lstQty, lstPx, tradeDate, time); =20 message.setField(new NoSides(NoSides.ONE_SIDE)); Group group =3D new Group(NoSides.FIELD,1); group.setField(new Side(Side.BUY)); group.setField(new OrderID("12345")); message.addGroup(group); message.setField(execType); message.setField(symbol); =20 =20 String xml =3D message.toXML(); System.out.println(xml); return message; } Now getting: 8=3DFIX.4.4=019=3D129=0135=3D3=0134=3D21=0149=3DXXX1=0152=3D20060301-11:0= 6:28.859=0156=3DXXXX_ADAP TER=0145=3D21=0158=3DRequired tag missing=01371=3D54=01372=3DAE=01373=3D1=0110=3D174=01 Which suggests that the "Side" field is missing, but I have added it to the group?? -- View this message in context: http://www.nabble.com/TradeCaptureReport-problems-t1204255.html#a3181460 Sent from the QuickFIX - Dev forum at Nabble.com. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the = sender, delete it and do not read, act upon, print, disclose, copy, = retain or redistribute it. Click here for important additional terms = relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- |