Search code examples
quickfixj

Quickfixj- Custom FIX msg - 35=F not working for Multileg


I am using quickfixJ 2.3 To parse the FIX message , we have used MessageUtils.parse(msgFactory,dd,inPutFixMsg, false) I am able to place the list order ,multileg - 35= AB, AC order.
Now when I want to cancel the multileg order created by AB, I just replaced 35=F, added 41 tag. Now I am getting error while parsing in Message.parse : tag 600 appears more than once.

I am interested to know ,the other cancel( new order cancel, future cancel) working fine. Even I have mentioned the dd, then still why m I getting the error? Or is there any other approach ?


Solution

  • You can't just change the message type (tag 35) and assume all the other tags are going to be compatible!

    AB and F messages have different tags in their body. They are totally different messages!

    The amount of stuff about FIX that you need to know exceeds what is appropriate for a StackOverflow answer. You really need to read some docs about how FIX messages are structured and decoded.