RE: [Quickfix-developers] TradeCaptureReport problems
Brought to you by:
orenmnero
|
From: Steve B. <sb...@sm...> - 2006-03-01 11:39:01
|
=20 Hello, It doesn't look like you're creating the group correctly. I see Toby already replied, so I'll just add that there is an example of using repeating groups at... http://www.quickfixengine.org/quickfix/doc/html/java/repeating_groups_1. html Regards, Steve Bate Smart Trade Technologies Phone: +33 4 42 90 03 97 http://www.smart-trade.net/ > -----Original Message----- > From: qui...@li...=20 > [mailto:qui...@li...] On=20 > Behalf Of SPG > Sent: Wednesday, March 01, 2006 12:25 PM > To: qui...@li... > Subject: Re: [Quickfix-developers] TradeCaptureReport problems >=20 > QuickFIX Documentation:=20 > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html >=20 >=20 > OK, Here is an update.. But still getting errors: >=20 > 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"); >=20 > TradeCaptureReport message =3D new=20 > TradeCaptureReport(id, prevRpt, lstQty, lstPx, > =20 > 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); >=20 > message.setField(execType); > message.setField(symbol); =20 > =20 > String xml =3D message.toXML(); > System.out.println(xml); > return message; > } >=20 > Now getting: >=20 > = 8=3DFIX.4.4=019=3D129=0135=3D3=0134=3D21=0149=3DXXX1=0152=3D20060301-11:0= 6:28.859=0156 > =3DXXXX_ADAPTER=0145=3D21=0158=3DRequired > tag missing=01371=3D54=01372=3DAE=01373=3D1=0110=3D174=01 >=20 > Which suggests that the "Side" field is missing, but I have=20 > added it to the group?? >=20 >=20 > -- > View this message in context:=20 > http://www.nabble.com/TradeCaptureReport-problems-t1204255.htm > l#a3181460 > Sent from the QuickFIX - Dev forum at Nabble.com. >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking=20 > scripting language that extends applications into web and=20 > mobile media. Attend the live webcast and join the prime=20 > 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 >=20 |