NoLegSecurityAltID (FIX tag 604)
NoLegSecurityAltID (tag 604) is a NumInGroup field defined in FIX 4.4. It appears in 50 message types, always optionally. Its datatype is NumInGroup, which makes it a repeating-group counter: its value is the number of entries that follow, not a quantity in its own right.
At a glance
- Tag
- 604
- Name
- NoLegSecurityAltID
- Datatype
- NumInGroup (int)
- Dialects
- FIX 4.4
- Messages
- 50
What the specification says
Multileg instrument's individual security’s NoSecurityAltID. See NoSecurityAltID (454) field for description
Descriptions are quoted from the FIX Orchestra sources under the Apache 2.0 licence.
A real message using tag 604
| Tag | Field | Wire value | Meaning |
|---|---|---|---|
| 8 | BeginString | FIX.4.4 | |
| 9 | BodyLength | 181 | |
| 35 | MsgType | 8 | Execution Report |
| 49 | SenderCompID | BOARTEAM | |
| 56 | TargetCompID | COUNTERPARTY | |
| 34 | MsgSeqNum | 2 | |
| 52 | SendingTime | 20240101-12:00:00.000 | |
| 37 | OrderID | ORD-10042 | |
| 17 | ExecID | EXEC-88117 | |
| 150 | ExecType | 0 | New |
| 39 | OrdStatus | 0 | New |
| 54 | Side | 1 | Buy |
| 151 | LeavesQty | 0 | |
| 14 | CumQty | 1000000 | |
| 6 | AvgPx | 1.09215 | |
| 555 | NoLegs1 entry | 1 | repeating group |
| 600 | LegSymbol | EXAMPLE | |
| 604 | NoLegSecurityAltID2 entries | 2 | repeating group |
| 605 | LegSecurityAltID | EXAMPLE | |
| 605 | LegSecurityAltID | EXAMPLE | |
| 10 | CheckSum | 222 |
Shown with | separators for readability. On the wire FIX uses SOH (0x01), an invisible control byte — and because BodyLength and CheckSum are computed over the actual bytes, the two forms have different checksums. Both are valid and both decode here.
Generated from the FIX 4.4 dictionary and verified at build time: it parses and validates with no issues. Open the decoder to try your own message.
Where tag 604 appears
Requiredness is a property of the message, not of the field: the same tag can be optional in one message and conditionally required in another.
| Message | MsgType | Requiredness | Where in the message |
|---|---|---|---|
| Advertisement | 7 | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| AllocationInstruction | J | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| AllocationReport | AS | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| AssignmentReport | AW | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CollateralAssignment | AY | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CollateralInquiry | BB | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CollateralInquiryAck | BG | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CollateralReport | BA | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CollateralRequest | AX | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CollateralResponse | AZ | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| Confirmation | AK | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CrossOrderCancelReplaceRequest | t | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| CrossOrderCancelRequest | u | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| DerivativeSecurityList | AA | Optional | inside RelSymDerivSecGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| DontKnowTrade | Q | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| C | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp | |
| ExecutionReport | 8 | Optional | inside InstrmtLegExecGrp › InstrumentLeg › LegSecAltIDGrp |
| IOI | 6 | Optional | inside InstrmtLegIOIGrp › InstrumentLeg › LegSecAltIDGrp |
| MarketDataIncrementalRefresh | X | Optional | inside MDIncGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| MarketDataRequest | V | Optional | inside InstrmtMDReqGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| MarketDataSnapshotFullRefresh | W | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| MassQuote | i | Optional | inside QuotSetGrp › QuotEntryGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| MassQuoteAcknowledgement | b | Optional | inside QuotSetAckGrp › QuotEntryAckGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| MultilegOrderCancelReplace | AC | Optional | inside LegOrdGrp › InstrumentLeg › LegSecAltIDGrp |
| NewOrderCross | s | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| NewOrderMultileg | AB | Optional | inside LegOrdGrp › InstrumentLeg › LegSecAltIDGrp |
| News | B | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| PositionMaintenanceReport | AM | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| PositionMaintenanceRequest | AL | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| PositionReport | AP | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| Quote | S | Optional | inside LegQuotGrp › InstrumentLeg › LegSecAltIDGrp |
| QuoteCancel | Z | Optional | inside QuotCxlEntriesGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| QuoteRequest | R | Optional | inside QuotReqGrp › QuotReqLegsGrp › InstrumentLeg › LegSecAltIDGrp |
| QuoteRequestReject | AG | Optional | inside QuotReqRjctGrp › QuotReqLegsGrp › InstrumentLeg › LegSecAltIDGrp |
| QuoteResponse | AJ | Optional | inside LegQuotGrp › InstrumentLeg › LegSecAltIDGrp |
| QuoteStatusReport | AI | Optional | inside LegQuotStatGrp › InstrumentLeg › LegSecAltIDGrp |
| QuoteStatusRequest | a | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| RFQRequest | AH | Optional | inside RFQReqGrp › InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| RequestForPositions | AN | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| RequestForPositionsAck | AO | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| SecurityDefinition | d | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| SecurityDefinitionRequest | c | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| SecurityList | y | Optional | inside SecListGrp › InstrmtLegSecListGrp › InstrumentLeg › LegSecAltIDGrp |
| SecurityListRequest | x | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| SecurityStatus | f | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| SecurityStatusRequest | e | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| TradeCaptureReport | AE | Optional | inside TrdInstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| TradeCaptureReportAck | AR | Optional | inside TrdInstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| TradeCaptureReportRequest | AD | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
| TradeCaptureReportRequestAck | AQ | Optional | inside InstrmtLegGrp › InstrumentLeg › LegSecAltIDGrp |
Wire format
The number of entries in the repeating group that follows. The next field on the wire is the group's delimiter tag. @boarteam/fix parses the value as a number and reports parse/invalid-int when it does not lex as one; the raw string is kept either way.
Read tag 604 in TypeScript
import { createFixEngine } from "@boarteam/fix";import { dictionary } from "@boarteam/fix-dict-fix44";const fix = createFixEngine(dictionary);const { message, issues } = fix.parse(raw);// NoLegSecurityAltID is a group counter, so the entries live on message.groups —// NOT on message.fields. message.fields[604] is undefined.const entries = message.groups[604] ?? [];for (const entry of entries) { // entry.fields is keyed by tag; entry.groups holds nested groups}Other NumInGroup fields
- 627NoHops
- 580NoDates
- 576NoClearingInstructions
- 558NoSecurityTypes
- 555NoLegs
- 552NoSides
- 539NoNestedPartyIDs
- 670NoLegAllocs
- 534NoAffectedOrders
- 683NoLegStipulations
- 518NoContAmts
- 510NoDistribInsts
- 702NoPositions
- 711NoUnderlyings
- 473NoRegistDtls
- 735NoQuoteQualifiers
- 457NoUnderlyingSecurityAltID
- 753NoPosAmt
- 454NoSecurityAltID
- 453NoPartyIDs
- 756NoNested2PartyIDs
- 768NoTrdRegTimestamps
- 778NoSettlInst
- 428NoStrikes
Decode this in your own code
The same engine that produced the decoded example above is an Apache-2.0 npm package with zero runtime dependencies. It runs in Node and in the browser, and parse() returns problems as data instead of throwing.
npm i @boarteam/fix @boarteam/fix-dict-fix44