Re: [Quickfix-developers] In what stable version of QuickFixJ is Marketdepth available?
Brought to you by:
orenmnero
|
From: Dave L. <dav...@ma...> - 2006-07-29 06:34:45
|
>
> quickFIXMessage.setField(new
quickfix.field.NoRelatedSym(1));//146...only one symbol always...in my
case
> quickFIXMessage.setField(new
quickfix.field.Symbol("MSFT"));//55
> quickFIXMessage.setField(new
quickfix.field.IDSource("8"));//TODo ..
> quickFIXMessage.setField(new
quickfix.field.SecurityID("MSFT"));//48...
> quickFIXMessage.setField(new
quickfix.field.SecurityExchange("NYS"));
>
>
Even if you only have one group, you should still set these in the
appropriate group class and then add the group to the message, something
like:
quickfix.fix42.MarketDataRequest.NoRelatedSym group =
new quickfix.fix42.MarketDataRequest.NoRelatedSym();
group.set(new Symbol("MSFT"));
group.set(new IDSource("8"));
group.set(new SecurityID("MSFT"));
group.set(new SecurityExchange("NYS"));
message.addGroup(group);
You shouldn't set group fields directly in the message class.
See
http://www.quickfixj.org/quickfixj/usermanual/usage/repeating_groups.htm
l
Hope this helps.
Cheers,
Dave
|