Skip to content

order of Tags in group is wrong #2

@bpqm

Description

@bpqm

I think the developer of node_quickfix did not notice that the order of Tags in group is important.

In FIX protocol, If the order of Tags in group is wrong, the request will be rejected and get the response
"Out of order repeating group members"

2015-02-10 12 11 11

As my example,

          groups: [{
            'index': 146,
            'delim': 55,
            'entries': [{
              '55': 'BITCOIN',
              '48': 'BITCOIN.C',
              '22': 111
            }]

The correct send order is 55 48 22 (FIX Protocol need this order)

But node_quickfix send them in this order 55 22 48.

Why 55 comes before 22 ? Because delim=55, and If I set delim=48 node_quickfix will send them in this order48 22 55

How quickfix_ruby resolve this problem?

In Quickfix_ruby https://github.com/quickfix/quickfix/blob/master/src/ruby/quickfix44.rb#L571
They set the order of group Tags in initializer

Sorry , I’m not familiar with these source code below, But I think the developer can fix this problem here.
https://github.com/electronifie/node-quickfix/blob/master/src/FixMessageUtil.h#L93

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions