Required tag missing (Field=42) error

Created at 11 Dec 2016, 09:38
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
LO

love9712

Joined 11.12.2016

Required tag missing (Field=42) error
11 Dec 2016, 09:38


How Can I do?

<event> Received logon
FIX.4.4:icmarkets.1022571->cServer------client toApp-------????----8=FIX.4.49=11035=V34=249=icmarkets.102257152=20161211-07:31:57.68056=cServer262=123263=1264=1146=155=1267=1269=010=216
<outgoing> 8=FIX.4.49=11035=V34=249=icmarkets.102257152=20161211-07:31:57.68056=cServer262=123263=1264=1146=155=1267=1269=010=216
<incoming> 8=FIX.4.49=11435=W34=249=cServer52=20161211-07:31:57.29756=icmarkets.102257155=1268=2269=1270=1.05599269=0270=1.0557810=231
<event> Message 2 Rejected: Required tag missing (Field=42)

 


@love9712
Replies

cyfer
11 Dec 2016, 12:02

First thing you should be aware of .. The server responded to you with a Bid & Ask Prices ... so basically you communicated successfully with the server and it responded . 

Now ,Your Config File instructed To reject the message coming from the Server and the reason was (Tag 42) Which is Orig Time , If you're testing while the market is closed

you should wait till it opens . 

But Make sure that you have those lines in your config file 

StartTime=00:00:00
EndTime=23:59:59

if this is not the solution , please post  how do you send the message to the server QuickFix or Raw Fix from cAlgo ? 

 

 

Here is a MDRequest with a market depth set to 1 like your message .. only changed the Account No.

8=FIX.4.4
9=138
35=V
34=2
49=fxpro.*****
52=20161211-09:29:21.688
56=cServer
49=fxpro.*****
262=MarketDataID
263=1
264=1
267=2
269=0
269=1
146=1
55=1
10=232
20161211-09:29:21.695

and here is the response from the server while the market is closed .

8=FIX.4.4
9=119
35=W
34=2
49=cServer
50=Quote
52=20161211-09:29:20.108
56=fxpro.*******
55=1
268=2
269=0
270=1.05602
269=1
270=1.05609
10=012

 


@cyfer