SecurityIDSource (FIX tag 22)
SecurityIDSource (tag 22) is a String field defined in FIX 4.4 and FIX 4.2. It appears in 59 message types, always optionally. It is an enumerated field with 19 defined values. FIX 4.2 calls this field IDSource; the tag number is unchanged, so the two are the same field on the wire.
At a glance
- Tag
- 22
- Name
- SecurityIDSource
- Datatype
- String
- Dialects
- FIX 4.4 and FIX 4.2
- Messages
- 59
- Valid values
- 19
What the specification says
FIX 4.4
Identifies class or source of the SecurityID (48) value. Required if SecurityID is specified.
FIX 4.2
Identifies class of alternative SecurityID
Descriptions are quoted from the FIX Orchestra sources under the Apache 2.0 licence.
A real message using tag 22
| Tag | Field | Wire value | Meaning |
|---|---|---|---|
| 8 | BeginString | FIX.4.4 | |
| 9 | BodyLength | 116 | |
| 35 | MsgType | D | Order – Single |
| 49 | SenderCompID | BOARTEAM | |
| 56 | TargetCompID | COUNTERPARTY | |
| 34 | MsgSeqNum | 2 | |
| 52 | SendingTime | 20240101-12:00:00.000 | |
| 11 | ClOrdID | ORD-10042 | |
| 22 | SecurityIDSource | 1 | CUSIP |
| 54 | Side | 1 | Buy |
| 60 | TransactTime | 20240101-12:00:00.000 | |
| 40 | OrdType | 1 | Market |
| 10 | CheckSum | 200 |
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.
Valid values
A value outside this list is not a parse error — the message still decodes — but validate() reports it as validate/value-not-in-enum.
| Value | Meaning | Symbolic name | Dialects |
|---|---|---|---|
| 1 | CUSIP | CUSIP | FIX 4.4, FIX 4.2 |
| 2 | SEDOL | SEDOL | FIX 4.4, FIX 4.2 |
| 3 | QUIK | QUIK | FIX 4.4, FIX 4.2 |
| 4 | ISIN number | ISIN_NUMBER / ISINNumber | FIX 4.4, FIX 4.2 |
| 5 | RIC code | RIC_CODE / RICCode | FIX 4.4, FIX 4.2 |
| 6 | ISO Currency Code | ISO_CURRENCY_CODE / ISOCurrencyCode | FIX 4.4, FIX 4.2 |
| 7 | ISO Country Code | ISO_COUNTRY_CODE / ISOCountryCode | FIX 4.4, FIX 4.2 |
| 8 | Exchange Symbol | EXCHANGE_SYMBOL / ExchangeSymbol | FIX 4.4, FIX 4.2 |
| 9 | Consolidated Tape Association (CTA) Symbol (SIAC CTS/CQS line format) | CONSOLIDATED_TAPE_ASSOCIATION / ConsolidatedTapeAssociation | FIX 4.4, FIX 4.2 |
| A | Bloomberg Symbol | BLOOMBERG_SYMBOL | FIX 4.4 |
| B | Wertpapier | WERTPAPIER | FIX 4.4 |
| C | Dutch | DUTCH | FIX 4.4 |
| D | Valoren | VALOREN | FIX 4.4 |
| E | Sicovam | SICOVAM | FIX 4.4 |
| F | Belgian | BELGIAN | FIX 4.4 |
| G | "Common" (Clearstream and Euroclear) | COMMON | FIX 4.4 |
| H | Clearing House / Clearing Organization | CLEARING_HOUSE | FIX 4.4 |
| I | ISDA/FpML Product Specification | ISDA_FPML_PRODUCT_SPECIFICATION | FIX 4.4 |
| J | Options Price Reporting Authority | OPTIONS_PRICE_REPORTING_AUTHORITY | FIX 4.4 |
Where tag 22 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 | FIX 4.4 | FIX 4.2 | Where in the message |
|---|---|---|---|---|
| Advertisement | 7 | Conditional | Optional | inside the Instrument component |
| AllocationInstruction | J | Conditional | Optional | inside the Instrument component |
| AllocationReport | AS | Conditional | — | inside the Instrument component |
| AssignmentReport | AW | Conditional | — | inside the Instrument component |
| CollateralAssignment | AY | Conditional | — | inside the Instrument component |
| CollateralInquiry | BB | Conditional | — | inside the Instrument component |
| CollateralInquiryAck | BG | Conditional | — | inside the Instrument component |
| CollateralReport | BA | Conditional | — | inside the Instrument component |
| CollateralRequest | AX | Conditional | — | inside the Instrument component |
| CollateralResponse | AZ | Conditional | — | inside the Instrument component |
| Confirmation | AK | Conditional | — | inside the Instrument component |
| CrossOrderCancelReplaceRequest | t | Conditional | — | inside the Instrument component |
| CrossOrderCancelRequest | u | Conditional | — | inside the Instrument component |
| DerivativeSecurityList | AA | Conditional | — | inside RelSymDerivSecGrp › Instrument |
| DontKnowTrade | Q | Conditional | Optional | inside the Instrument component |
| C | Conditional | Optional | inside InstrmtGrp › Instrument | |
| ExecutionReport | 8 | Conditional | Optional | inside the Instrument component |
| IOI | 6 | Conditional | Optional | inside the Instrument component |
| ListStrikePrice | m | Conditional | Optional | inside InstrmtStrkPxGrp › Instrument |
| MarketDataIncrementalRefresh | X | Conditional | Optional | inside MDIncGrp › Instrument |
| MarketDataRequest | V | Conditional | Optional | inside InstrmtMDReqGrp › Instrument |
| MarketDataSnapshotFullRefresh | W | Conditional | Optional | inside the Instrument component |
| MassQuote | i | Conditional | Optional | inside QuotSetGrp › QuotEntryGrp › Instrument |
| MassQuoteAcknowledgement | b | Conditional | Optional | inside QuotSetAckGrp › QuotEntryAckGrp › Instrument |
| MultilegOrderCancelReplace | AC | Conditional | — | inside the Instrument component |
| NewOrderCross | s | Conditional | — | inside the Instrument component |
| NewOrderList | E | Conditional | Optional | inside ListOrdGrp › Instrument |
| NewOrderMultileg | AB | Conditional | — | inside the Instrument component |
| NewOrderSingle | D | Conditional | Optional | inside the Instrument component |
| News | B | Conditional | Optional | inside InstrmtGrp › Instrument |
| OrderCancelReplaceRequest | G | Conditional | Optional | inside the Instrument component |
| OrderCancelRequest | F | Conditional | Optional | inside the Instrument component |
| OrderMassCancelReport | r | Conditional | — | inside the Instrument component |
| OrderMassCancelRequest | q | Conditional | — | inside the Instrument component |
| OrderMassStatusRequest | AF | Conditional | — | inside the Instrument component |
| OrderStatusRequest | H | Conditional | Optional | inside the Instrument component |
| PositionMaintenanceReport | AM | Conditional | — | inside the Instrument component |
| PositionMaintenanceRequest | AL | Conditional | — | inside the Instrument component |
| PositionReport | AP | Conditional | — | inside the Instrument component |
| Quote | S | Conditional | Optional | inside the Instrument component |
| QuoteCancel | Z | Conditional | Optional | inside QuotCxlEntriesGrp › Instrument |
| QuoteRequest | R | Conditional | Optional | inside QuotReqGrp › Instrument |
| QuoteRequestReject | AG | Conditional | — | inside QuotReqRjctGrp › Instrument |
| QuoteResponse | AJ | Conditional | — | inside the Instrument component |
| QuoteStatusReport | AI | Conditional | — | inside the Instrument component |
| QuoteStatusRequest | a | Conditional | Optional | inside the Instrument component |
| RFQRequest | AH | Conditional | — | inside RFQReqGrp › Instrument |
| RequestForPositions | AN | Conditional | — | inside the Instrument component |
| RequestForPositionsAck | AO | Conditional | — | inside the Instrument component |
| SecurityDefinition | d | Conditional | Optional | inside the Instrument component |
| SecurityDefinitionRequest | c | Conditional | Optional | inside the Instrument component |
| SecurityList | y | Conditional | — | inside SecListGrp › Instrument |
| SecurityListRequest | x | Conditional | — | inside the Instrument component |
| SecurityStatus | f | Conditional | Optional | inside the Instrument component |
| SecurityStatusRequest | e | Conditional | Optional | inside the Instrument component |
| TradeCaptureReport | AE | Conditional | — | inside the Instrument component |
| TradeCaptureReportAck | AR | Conditional | — | inside the Instrument component |
| TradeCaptureReportRequest | AD | Conditional | — | inside the Instrument component |
| TradeCaptureReportRequestAck | AQ | Conditional | — | inside the Instrument component |
Wire format
Free-form text. Any byte except the SOH separator is legal, so values are not trimmed or case-folded on the wire. @boarteam/fix keeps the value as a string; format rules are checked by validate(), which reports validate/invalid-value rather than throwing.
Read tag 22 in TypeScript
import { createFixEngine } from "@boarteam/fix";import { dictionary } from "@boarteam/fix-dict-fix44";const fix = createFixEngine(dictionary);const { message, issues } = fix.parse(raw);const securityIDSource = message.fields[22]?.raw;// e.g. "1" — CUSIP// The dictionary also carries the labels:const label = fix.dictionary .fieldByTag(22) ?.enumValues?.find((e) => e.value === securityIDSource) ?.description;Other String 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