FIX repeating groups
How a repeating group is laid out, and the rules a FIX parser relies on.
A repeating group lets a set of fields appear several times in one message. A Security Definition (35=d) can describe every leg of a multileg instrument this way, and a Trade Capture Report (35=AE) can carry each side with its own parties.
The count field
Every group starts with a count field whose name begins with No, such as NoLegs (555), NoPartyIDs (453) or NoAllocs (78). Its value is the number of entries, and the entries follow it straight away. If the group is optional and empty, leave the count field out. Sending 555=0 is valid but best avoided.
The first field of each entry
The field listed straight after the count field opens each entry. In a legs group that is LegSecurityID (602). A parser uses it to tell where one entry ends and the next begins, so it must be present in every entry.
Field order
Fields inside an entry must follow the order in the FIX specification for that message. Required fields appear in every entry; optional fields can appear in some entries and not others.
Example: two legs
555=2|602=9131|603=8|624=2|623=1|602=2382|603=8|624=1|623=1|
Here 555=2 announces two legs. Each leg opens with 602, then gives the ID source (603), the side (624: 2 is sell, 1 is buy) and the ratio (623). The | stands in for the SOH delimiter.
Nested groups
An entry can contain another group. In a Trade Capture Report, each entry in the NoSides (552) group holds its own NoPartyIDs (453) group, and all inner entries belong to the side that contains them.
Custom groups
A parser cannot find the boundaries of a group it has no definition for. If a venue adds its own groups, load that venue's FIX dictionary into the FIX Engine so it can parse them.
Documentation: FIX Repeating Group on ref.onixs.biz
Try it: Request a free 30-day evaluation
Questions? Email sales@onixs.biz