Thread: [Quickfix-developers] TradeCaptureReport problems
Brought to you by:
orenmnero
|
From: SPG <ste...@bl...> - 2006-03-01 07:59:32
|
All,
I am new to FIX and the QuickFix api, I am trying to set up a system and
initially attempting to send a sample TradeCaptureReport to a client
connection.
I am currently getting the following error:
8=3DFIX.4.4=019=3D150=0135=3D3=0134=3D3141=0149=3DFIXCLIENT1=0152=3D2006022=
8-22:00:29.562=0156=3DFFASTFILL_LBN_FIX_ADAPTER=0145=3D3142=0158=3DTag
not defined for this message type=01371=3D37=01372=3DAE=01373=3D2=0110=3D09=
4=01
This is how I am constructing my message:
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());
NoSides noSides =3D new NoSides();
Side s1 =3D new Side();
OrderID orderID =3D new OrderID("12345");
Symbol symbol =3D new Symbol("SYMBOL");
TradeCaptureReport message =3D new TradeCaptureReport(id, prevRpt,
lstQty, lstPx,
tradeDate, time);
message.setField(noSides);
message.setField(s1);
message.setField(orderID);
message.setField(symbol);
return message;
}
Any ideas what I am doing wrong?
Thanks in advance...
Regards,
Steve
--
View this message in context: http://www.nabble.com/TradeCaptureReport-prob=
lems-t1204255.html#a3179176
Sent from the QuickFIX - Dev forum at Nabble.com.
|
|
From: SPG <ste...@bl...> - 2006-03-01 11:25:27
|
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:06:=
28.859=0156=3DXXXX_ADAPTER=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-prob=
lems-t1204255.html#a3181460
Sent from the QuickFIX - Dev forum at Nabble.com.
|
|
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 |
|
From: SPG <ste...@bl...> - 2006-03-01 12:13:02
|
Hi Steve / Toby Thanks for the pointer... As I said, I am new to the api and feeling my way around. I used the NoSides class instead of the group and hey presto! Thanks for your help! -- View this message in context: http://www.nabble.com/TradeCaptureReport-problems-t1204255.html#a3181987 Sent from the QuickFIX - Dev forum at Nabble.com. |