Re: [Quickfix-developers] session id's and arca fix certification
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-06-04 17:43:28
|
You need to specify in the context of the FIX version and message,=20 since groups change definitions between FIX versions. So for instance FIX42::NewOrderSingle::NoTradingSessions group; group.set( FIX::TradingSessionId("P1" ) ); message.addGroup( group ); group.set( FIX::TradingSessionID("P2") ); message.addGroup( group ); group.set( FIX::TradingSessionID("P3") ); message.addGroup( group ); Field 386, NoTradingSessions, will automatically be calculated and set=20= for you. On Jun 4, 2004, at 12:20 PM, Clark Sims wrote: > I need to set NoTradingSessions(386) =3D 3 > and add > 336=3DP1 336=3DP2 336=3DP3 > =A0 > to pass the Arca Fix Certification. > =A0 > I went through the documentation on repeating groups: > =A0 > // create a market data message > =A0=A0=A0 FIX42::MarketDataSnapshotFullRefresh = message(FIX::Symbol("QF")); > // repeating group in the form of MessageName::NoField=20 > =A0FIX42::MarketDataSnapshotFullRefresh::NoMDEntries group; > =A0=A0=A0 group.set(FIX::MDEntryType('0')); > =A0=A0=A0 group.set(FIX::MDEntryPx(12.32)); > =A0=A0=A0 group.set(FIX::MDEntrySize(100)); > =A0=A0=A0 group.set(FIX::OrderID("ORDERID")); > =A0=A0=A0 message.addGroup(group); > I found the following statement in Fields.h > DEFINE_NUMINGROUP(NoTradingSessions) > =A0 > and I found > NoTradingSessions =3D 386=A0 in FildNumbers.h > =A0 > But I can't figure out how to specify the group I need to add! > I have tried: > FIX::TradingSessionId::NoTradingSessions group; > =A0 > but it doesn't compile. > =A0 > What is the C++ syntax to say :=A0 386=3D3 336=3DP1 336=3DP2 336=3DP3 > in the FIX message? > =A0 > =A0 > > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger= |