quickfixgo / quickfix

The Go FIX Protocol Library :rocket:

Home Page:https://www.quickfixgo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When there are duplicate tags in the message I received, there is only one element in the slice of Message.Body.FieldMap.tagLookup[tag]

mrwh1t4 opened this issue · comments

The message is just like below:

9=000540
35=UP
34=000004
43=N
52=20230627-13:51:13.116
49=xx
56=xxxx
6529=req_id
8054=2
6068=AGI
6288=0
8001=PositionList
8002=AGI/USD
6068=PDD
6288=0
8001=PositionList
8002=PDD/USD
10=xxx

Tag 6068 appeared twice in this message, but when I print Message.Body.FieldMap.tagLookup[6068],there is only one element in the slice just like below.

[
    {    
        /*tag*/             6068 
        /*value PDD */      [80 68 68 ] 
        /*bytes*/           [54 48 54 56 61 80 68 68 1]
    }
]

Is this a problem or is it designed this way?

It seems the field is in a repeating group.
Quickfixgo implementation only supports repeating groups using fix dictionaries.