equired tag missing (Field=42) error(row message)
Created at 17 Dec 2016, 06:07
equired tag missing (Field=42) error(row message)
17 Dec 2016, 06:07
This is my setting
Please help me
raw message
FIX.4.4:pepperstone.AccNum->cServer------client onCreate ?建Session-------FIX.4.4:pepperstone.AccNum->cServer <event> Created session <event> Connecting to 209.58.160.153 on port 5201 <event> Connection succeeded <event> Session reset: ResetOnLogon <event> Session reset: ResetSeqNumFlag <outgoing> 8=FIX.4.49=11235=A34=149=pepperstone.AccNum52=20161217-04:04:57.84656=cServer98=0108=30141=Y553=AccNum554=Password10=195 <event> Initiated logon request <incoming> 8=FIX.4.49=8735=A34=149=cServer52=20161217-04:04:57.58056=pepperstone.AccNum98=0108=30141=Y10=090 FIX.4.4:pepperstone.AccNum->cServer------client fromAdmin-------????----8=FIX.4.49=8735=A34=149=cServer52=20161217-04:04:57.58056=pepperstone.AccNum98=0108=30141=Y10=090 <event> Received logon FIX.4.4:pepperstone.AccNum->cServer------client toApp-------????----8=FIX.4.49=12735=V34=249=pepperstone.AccNum52=20161217-04:04:58.61256=cServer262=MarketDataID263=1264=1267=2269=0269=1146=155=110=187 <outgoing> 8=FIX.4.49=12735=V34=249=pepperstone.AccNum52=20161217-04:04:58.61256=cServer262=MarketDataID263=1264=1267=2269=0269=1146=155=110=187 <incoming> 8=FIX.4.49=11635=W34=249=cServer52=20161217-04:04:57.68956=pepperstone.AccNum55=1268=2269=1270=1.04518269=0270=1.0451410=210 <event> Message 2 Rejected: Required tag missing (Field=42) <outgoing> 8=FIX.4.49=14235=334=349=pepperstone.AccNum52=20161217-04:04:58.75356=cServer45=258=Required tag missing371=42372=W373=1553=AccNum554=Password10=041 <incoming> 8=FIX.4.49=13535=334=349=cServer52=20161217-04:04:57.82456=pepperstone.AccNum45=358=Tag not defined for this message type371=553372=3373=210=234 FIX.4.4:pepperstone.AccNum->cServer------client fromAdmin-------????----8=FIX.4.49=13535=334=349=cServer52=20161217-04:04:57.82456=pepperstone.AccNum45=358=Tag not defined for this message type371=553372=3373=210=234
quickfix-client.cfg
[SESSION] BeginString=FIX.4.4 SocketConnectPort=5201 FileStorePath=client FileLogPath=clientlog ConnectionType=initiator SenderCompID=pepperstone.AccNum SocketConnectHost=209.58.160.153 TargetCompID=cServer StartTime=00:00:00 EndTime=23:59:59 HeartBtInt=30 ReconnectInterval=5 UseDataDictionary=Y DataDictionary=config/FIX44.xml ResetOnLogon=Y ResetOnLogout=Y ResetOnDisconnect=Y ResetOnError=Y SSLEnable=N
Code
Session session = Session.LookupSession(sessionID); Message message = null; MDReqID mdReqID = new MDReqID("MarketDataID"); SubscriptionRequestType subType = new SubscriptionRequestType(SubscriptionRequestType.SNAPSHOT_PLUS_UPDATES); MarketDepth marketDepth = new MarketDepth(1); QuickFix.FIX44.MarketDataRequest.NoRelatedSymGroup symbolGroup = new QuickFix.FIX44.MarketDataRequest.NoRelatedSymGroup(); symbolGroup.Set(new Symbol("1")); QuickFix.FIX44.MarketDataRequest message = new QuickFix.FIX44.MarketDataRequest(mdReqID, subType, marketDepth); QuickFix.FIX44.MarketDataRequest.NoMDEntryTypesGroup marketDataEntryGroup = new QuickFix.FIX44.MarketDataRequest.NoMDEntryTypesGroup(); marketDataEntryGroup.Set(new MDEntryType(MDEntryType.BID)); message.AddGroup(marketDataEntryGroup); marketDataEntryGroup.Set(new MDEntryType(MDEntryType.OFFER)); message.AddGroup(marketDataEntryGroup); message.AddGroup(symbolGroup); session.Send(message);
cyfer
18 Dec 2016, 13:09
Try This
@cyfer