EncodedLegSecurityDesc (FIX tag 622)
EncodedLegSecurityDesc (tag 622) is a data field defined in FIX 4.4. It appears in 50 message types, always optionally. It is length-prefixed — tag 621 carries the byte count, so the value may contain the SOH separator without breaking the message.
At a glance
What the specification says
Multileg instrument's individual security’s EncodedSecurityDesc. See EncodedSecurityDesc (35) field for description
Descriptions are quoted from the FIX Orchestra sources under the Apache 2.0 licence.
A real message using tag 622
| Tag | Field | Wire value | Meaning |
|---|---|---|---|
| 8 | BeginString | FIX.4.4 | |
| 9 | BodyLength | 199 | |
| 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 | NoLegs2 entries | 2 | repeating group |
| 600 | LegSymbol | EXAMPLE | |
| 621 | EncodedLegSecurityDescLen | 7 | |
| 622 | EncodedLegSecurityDesc | EXAMPLE | |
| 600 | LegSymbol | EXAMPLE | |
| 621 | EncodedLegSecurityDescLen | 7 | |
| 622 | EncodedLegSecurityDesc | EXAMPLE | |
| 10 | CheckSum | 216 |
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 622 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 | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| AllocationInstruction | J | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| AllocationReport | AS | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| AssignmentReport | AW | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CollateralAssignment | AY | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CollateralInquiry | BB | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CollateralInquiryAck | BG | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CollateralReport | BA | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CollateralRequest | AX | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CollateralResponse | AZ | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| Confirmation | AK | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CrossOrderCancelReplaceRequest | t | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| CrossOrderCancelRequest | u | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| DerivativeSecurityList | AA | Conditional | inside RelSymDerivSecGrp › InstrmtLegGrp › InstrumentLeg |
| DontKnowTrade | Q | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| C | Conditional | inside InstrmtLegGrp › InstrumentLeg | |
| ExecutionReport | 8 | Conditional | inside InstrmtLegExecGrp › InstrumentLeg |
| IOI | 6 | Conditional | inside InstrmtLegIOIGrp › InstrumentLeg |
| MarketDataIncrementalRefresh | X | Conditional | inside MDIncGrp › InstrmtLegGrp › InstrumentLeg |
| MarketDataRequest | V | Conditional | inside InstrmtMDReqGrp › InstrmtLegGrp › InstrumentLeg |
| MarketDataSnapshotFullRefresh | W | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| MassQuote | i | Conditional | inside QuotSetGrp › QuotEntryGrp › InstrmtLegGrp › InstrumentLeg |
| MassQuoteAcknowledgement | b | Conditional | inside QuotSetAckGrp › QuotEntryAckGrp › InstrmtLegGrp › InstrumentLeg |
| MultilegOrderCancelReplace | AC | Conditional | inside LegOrdGrp › InstrumentLeg |
| NewOrderCross | s | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| NewOrderMultileg | AB | Conditional | inside LegOrdGrp › InstrumentLeg |
| News | B | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| PositionMaintenanceReport | AM | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| PositionMaintenanceRequest | AL | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| PositionReport | AP | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| Quote | S | Conditional | inside LegQuotGrp › InstrumentLeg |
| QuoteCancel | Z | Conditional | inside QuotCxlEntriesGrp › InstrmtLegGrp › InstrumentLeg |
| QuoteRequest | R | Conditional | inside QuotReqGrp › QuotReqLegsGrp › InstrumentLeg |
| QuoteRequestReject | AG | Conditional | inside QuotReqRjctGrp › QuotReqLegsGrp › InstrumentLeg |
| QuoteResponse | AJ | Conditional | inside LegQuotGrp › InstrumentLeg |
| QuoteStatusReport | AI | Conditional | inside LegQuotStatGrp › InstrumentLeg |
| QuoteStatusRequest | a | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| RFQRequest | AH | Conditional | inside RFQReqGrp › InstrmtLegGrp › InstrumentLeg |
| RequestForPositions | AN | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| RequestForPositionsAck | AO | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| SecurityDefinition | d | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| SecurityDefinitionRequest | c | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| SecurityList | y | Conditional | inside SecListGrp › InstrmtLegSecListGrp › InstrumentLeg |
| SecurityListRequest | x | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| SecurityStatus | f | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| SecurityStatusRequest | e | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| TradeCaptureReport | AE | Conditional | inside TrdInstrmtLegGrp › InstrumentLeg |
| TradeCaptureReportAck | AR | Conditional | inside TrdInstrmtLegGrp › InstrumentLeg |
| TradeCaptureReportRequest | AD | Conditional | inside InstrmtLegGrp › InstrumentLeg |
| TradeCaptureReportRequestAck | AQ | Conditional | inside InstrmtLegGrp › InstrumentLeg |
Wire format
Raw bytes, length-prefixed by a partner field. The value may legally contain the SOH separator, which is why the length matters. @boarteam/fix reads the partner length field first and takes exactly that many bytes, so an embedded separator does not truncate the value.
Read tag 622 in TypeScript
import { createFixEngine } from "@boarteam/fix";import { dictionary } from "@boarteam/fix-dict-fix44";const fix = createFixEngine(dictionary);const { message, issues } = fix.parse(raw);// Length-prefixed: tag 621 carries the byte count, so the// value may contain the SOH separator without breaking the message.const length = message.fields[621]?.value;const encodedLegSecurityDesc = message.fields[622]?.raw;Other data fields
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