Search code examples
quickfixquickfixj

quickfixj swaps group order


I want to produce a market data request with 2 groups, NoMDEntryTypes (267) and NoRelatedSym (146) one after the other, as below:

267=2 269=0 269=1 146=1 55=EUR/USD

but when I send the message somehow quickfixj or my data dictionary swaps around the order of the groups to the following:

146=1 55=EUR/USD 267=2 269=0 269=1 

This happens even if I create a direct string message and validate it through my data dictionary.

What can I do to keep the groups in the order I want ?! THANKS


Solution

  • define class extending GROUP and use your own order for it. just check NoMDEntryTypes.NoRelatedSym