LMT order error required tag missing 371=372 - solved
Created at 14 Apr 2017, 23:39
LMT order error required tag missing 371=372 - solved
14 Apr 2017, 23:39
I can submit orders in testing fine. However in production, I'm sending this LMT order and I get an error.
This is the return error:
Required tag missing
371=372
After much debugging, the problem was 44=1.006005, too many decimal places. I'm posting incase anyone has this problem in the future.
Replies
mattshome
19 Apr 2017, 17:12
Thanks for the tips. I had forgotten about the log files stored in the log directory.
@mattshome
#EOL
18 Apr 2017, 11:16
Well, it's not exactly what happend.
Both messages you mentioned were sent by your application. Take a look: they both have SenderCompID=fxpig.xxxx and TargetCompID=cServer.
In fact between these to messages there should be a response from the server. Something like this:
8=FIX.4.4|9=188|35=j|34=12|49=CSERVER|50=TRADE|52=20170418-07:34:19.493|56=xxxx|58=INVALID_REQUEST:Order price = 1.006005 has more digits than symbol allows. Allowed 5 digits|379=1163558011|380=0|10=151|
And your application treated this message as invalid, because it does not contain tag 371, that could not be there according to the spec
If you are using QuickFIX, check out the dictionary for BusinessMessageReject message
And turn on incoming FIX logs at least for trading connection, this will help you to investigate issues in the future
@#EOL