|
From: Mohammad K. L. <kam...@gm...> - 2007-03-29 08:25:38
|
Hi Toli,,
Thanks it all works now but am being faced by an unexpected error,,
here's my code,,
*Date date=new Date();
NewOrderSingle order = new NewOrderSingle();
order.setField(new MsgType("D"));
order.setField(new HandlInst('2'));
order.setField(new HeartBtInt(30));
order.setField(new BeginString("FIX.4.2"));
order.setField(new SenderCompID("client1"));
order.setField(new TargetCompID("ifkaar"));
order.setField(new OrdType(OrdType.LIMIT));
order.setField(new ClOrdID("clor"));
order.setField(new Symbol("symbol"));
order.setField(new Side('c'));
order.setField(new TransactTime(date));
order.setField(new Text("New Order"));
Session.sendToTarget(order,"sender","target");
*
I have attached the messages log file as well,, according to which my *
ClOrdID* and *Side* fields are missing in the message but you can see I have
included them in my order,,can u plz help me sort it out?
Hope I'm not disturbing you by asking questions so often,,,
Thanks for your kind help...
On 3/29/07, Toli Kuznets <to...@ma...> wrote:
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Oh, my bad. my misunderstanding.
>
> you can do something like this:
> order.setField(new OrdType(OrdType.LIMIT
>
> You want to use quickfix.OrdType not OrderType.
>
> See the newLimitOrder() function in the Marketcetera code:
>
> http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/main/java/org/marketcetera/quickfix/FIXMessageFactory.java#L127
>
> > Secondly can u plz clarify what's the difference between a message and
> an
> > order?
>
> Oh, there's no difference. I'm assuming the order is of
> quickfix.Message type, so i used the words interchangeably.
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
|