OrderCancelReplaceRequest (MsgType G)
OrderCancelReplaceRequest is the FIX message with MsgType G, defined in FIX 4.4, FIX 4.2 and FIX 5.0 SP2. It is an application-level message: it carries a business event rather than managing the session. Its body has 77 top-level members once the standard header and trailer are counted.
G is OrderCancelReplaceRequest, but g is a different message entirely — TradingSessionStatusRequest. Forty-six FIX message types differ from another only by letter case.A real OrderCancelReplaceRequest
| Tag | Field | Wire value | Meaning |
|---|---|---|---|
| 8 | BeginString | FIX.4.4 | |
| 9 | BodyLength | 124 | |
| 35 | MsgType | G | Order Cancel/Replace Request |
| 49 | SenderCompID | BOARTEAM | |
| 56 | TargetCompID | COUNTERPARTY | |
| 34 | MsgSeqNum | 2 | |
| 52 | SendingTime | 20240101-12:00:00.000 | |
| 41 | OrigClOrdID | ORD-10041 | |
| 11 | ClOrdID | ORD-10042 | |
| 54 | Side | 1 | Buy |
| 60 | TransactTime | 20240101-12:00:00.000 | |
| 40 | OrdType | 1 | Market |
| 10 | CheckSum | 162 |
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.
Message body — FIX 4.4
Components are listed by name and link to their own page rather than being expanded inline; repeating groups are expanded, including where they nest.
- —Standard Message HeadercomponentRequired
- 37OrderIDOptional
- —PartiescomponentOptional
- 229TradeOriginationDateOptional
- 75TradeDateOptional
- 41OrigClOrdIDRequired
- 11ClOrdIDRequired
- 526SecondaryClOrdIDOptional
- 583ClOrdLinkIDOptional
- 66ListIDOptional
- 586OrigOrdModTimeOptional
- 1AccountOptional
- 660AcctIDSourceOptional
- 581AccountTypeOptional
- 589DayBookingInstOptional
- 590BookingUnitOptional
- 591PreallocMethodOptional
- 70AllocIDOptional
- —PreAllocGrpcomponentOptional
- 63SettlTypeOptional
- 64SettlDateConditional
- 544CashMarginOptional
- 635ClearingFeeIndicatorOptional
- 21HandlInstOptional
- 18ExecInstOptional
- 110MinQtyOptional
- 111MaxFloorOptional
- 100ExDestinationOptional
- —TrdgSesGrpcomponentOptional
- —InstrumentcomponentRequired
- —FinancingDetailscomponentOptional
- —UndInstrmtGrpcomponentOptional
- 54SideRequired
- 60TransactTimeRequired
- 854QtyTypeOptional
- —OrderQtyDatacomponentRequired
- 40OrdTypeRequired
- 423PriceTypeOptional
- 44PriceConditional
- 99StopPxConditional
- —SpreadOrBenchmarkCurveDatacomponentOptional
- —YieldDatacomponentOptional
- —PegInstructionscomponentOptional
- —DiscretionInstructionscomponentOptional
- 847TargetStrategyOptional
- 848TargetStrategyParametersOptional
- 849ParticipationRateConditional
- 376ComplianceIDOptional
- 377SolicitedFlagOptional
- 15CurrencyOptional
- 59TimeInForceOptional
- 168EffectiveTimeOptional
- 432ExpireDateConditional
- 126ExpireTimeConditional
- 427GTBookingInstOptional
- —CommissionDatacomponentOptional
- 528OrderCapacityOptional
- 529OrderRestrictionsOptional
- 582CustOrderCapacityOptional
- 121ForexReqOptional
- 120SettlCurrencyConditional
- 775BookingTypeOptional
- 58TextOptional
- 354EncodedTextLenConditional
- 355EncodedTextConditional
- 193SettlDate2Optional
- 192OrderQty2Optional
- 640Price2Optional
- 77PositionEffectOptional
- 203CoveredOrUncoveredOptional
- 210MaxShowOptional
- 114LocateReqdConditional
- 480CancellationRightsOptional
- 481MoneyLaunderingStatusOptional
- 513RegistIDOptional
- 494DesignationOptional
- —Standard Message TrailercomponentRequired
Message body — FIX 4.2
Components are listed by name and link to their own page rather than being expanded inline; repeating groups are expanded, including where they nest.
- —Standard Message HeadercomponentRequired
- 37OrderIDOptional
- 109ClientIDOptional
- 76ExecBrokerOptional
- 41OrigClOrdIDRequired
- 11ClOrdIDRequired
- 66ListIDOptional
- 1AccountOptional
- 78NoAllocsrepeating groupOptional
- 79AllocAccountOptional
- 80AllocQtyOptional
- 63SettlTypeOptional
- 64SettlDateOptional
- 21HandlInstRequired
- 18ExecInstOptional
- 110MinQtyOptional
- 111MaxFloorOptional
- 100ExDestinationOptional
- 386NoTradingSessionsrepeating groupOptional
- 336TradingSessionIDOptional
- 55SymbolRequired
- 65SymbolSfxOptional
- 48SecurityIDOptional
- 22SecurityIDSourceOptional
- 167SecurityTypeOptional
- 200MaturityMonthYearOptional
- 205MaturityDayOptional
- 201PutOrCallOptional
- 202StrikePriceOptional
- 206OptAttributeOptional
- 231ContractMultiplierOptional
- 223CouponRateOptional
- 207SecurityExchangeOptional
- 106IssuerOptional
- 348EncodedIssuerLenOptional
- 349EncodedIssuerOptional
- 107SecurityDescOptional
- 350EncodedSecurityDescLenOptional
- 351EncodedSecurityDescOptional
- 54SideRequired
- 60TransactTimeRequired
- 38OrderQtyOptional
- 152CashOrderQtyOptional
- 40OrdTypeRequired
- 44PriceOptional
- 99StopPxOptional
- 211PegOffsetValueOptional
- 388DiscretionInstOptional
- 389DiscretionOffsetValueOptional
- 376ComplianceIDOptional
- 377SolicitedFlagOptional
- 15CurrencyOptional
- 59TimeInForceOptional
- 168EffectiveTimeOptional
- 432ExpireDateOptional
- 126ExpireTimeOptional
- 427GTBookingInstOptional
- 12CommissionOptional
- 13CommTypeOptional
- 47Rule80AOptional
- 121ForexReqOptional
- 120SettlCurrencyOptional
- 58TextOptional
- 354EncodedTextLenOptional
- 355EncodedTextOptional
- 193SettlDate2Optional
- 192OrderQty2Optional
- 77PositionEffectOptional
- 203CoveredOrUncoveredOptional
- 204CustomerOrFirmOptional
- 210MaxShowOptional
- 114LocateReqdOptional
- 439ClearingFirmOptional
- 440ClearingAccountOptional
- —Standard Message TrailercomponentRequired
Message body — FIX 5.0 SP2
Components are listed by name and link to their own page rather than being expanded inline; repeating groups are expanded, including where they nest.
- —Standard Message HeadercomponentRequired
- 37OrderIDOptional
- —PartiescomponentOptional
- 229TradeOriginationDateOptional
- 75TradeDateOptional
- 41OrigClOrdIDOptional
- 11ClOrdIDRequired
- 526SecondaryClOrdIDOptional
- 583ClOrdLinkIDOptional
- 66ListIDOptional
- 586OrigOrdModTimeOptional
- 1AccountOptional
- 660AcctIDSourceOptional
- 581AccountTypeOptional
- 589DayBookingInstOptional
- 590BookingUnitOptional
- 591PreallocMethodOptional
- 70AllocIDOptional
- —PreAllocGrpcomponentOptional
- 63SettlTypeOptional
- 64SettlDateOptional
- 544CashMarginOptional
- 635ClearingFeeIndicatorOptional
- 21HandlInstOptional
- 18ExecInstOptional
- 110MinQtyOptional
- 1089MatchIncrementOptional
- 1090MaxPriceLevelsOptional
- —DisplayInstructioncomponentOptional
- 111MaxFloorOptional
- 100ExDestinationOptional
- 1133ExDestinationIDSourceOptional
- —TrdgSesGrpcomponentOptional
- —InstrumentcomponentRequired
- —FinancingDetailscomponentOptional
- —UndInstrmtGrpcomponentOptional
- 54SideRequired
- 60TransactTimeRequired
- 854QtyTypeOptional
- —OrderQtyDatacomponentRequired
- 40OrdTypeRequired
- 423PriceTypeOptional
- 44PriceOptional
- 1092PriceProtectionScopeOptional
- 99StopPxOptional
- —TriggeringInstructioncomponentOptional
- —SpreadOrBenchmarkCurveDatacomponentOptional
- —YieldDatacomponentOptional
- —PegInstructionscomponentOptional
- —DiscretionInstructionscomponentOptional
- 847TargetStrategyOptional
- —StrategyParametersGrpcomponentOptional
- 848TargetStrategyParametersOptional
- 849ParticipationRateOptional
- 376ComplianceIDOptional
- 377SolicitedFlagOptional
- 15CurrencyOptional
- 59TimeInForceOptional
- 168EffectiveTimeOptional
- 432ExpireDateOptional
- 126ExpireTimeOptional
- 427GTBookingInstOptional
- —CommissionDatacomponentOptional
- 528OrderCapacityOptional
- 529OrderRestrictionsOptional
- 1091PreTradeAnonymityOptional
- 582CustOrderCapacityOptional
- 121ForexReqOptional
- 120SettlCurrencyOptional
- 775BookingTypeOptional
- 58TextOptional
- 354EncodedTextLenOptional
- 355EncodedTextOptional
- 193SettlDate2Optional
- 192OrderQty2Optional
- 640Price2Optional
- 77PositionEffectOptional
- 203CoveredOrUncoveredOptional
- 210MaxShowOptional
- 114LocateReqdOptional
- 480CancellationRightsOptional
- 481MoneyLaunderingStatusOptional
- 513RegistIDOptional
- 494DesignationOptional
- 1028ManualOrderIndicatorOptional
- 1029CustDirectedOrderOptional
- 1030ReceivedDeptIDOptional
- 1031CustOrderHandlingInstOptional
- 1032OrderHandlingInstSourceOptional
- —TrdRegTimestampscomponentOptional
- —Standard Message TrailercomponentRequired
What changed between the dialects
Present in FIX 4.2 only (34)
tag 109, tag 76, group 78, group 386, tag 55, tag 65, tag 48, tag 22, tag 167, tag 200, tag 205, tag 201, tag 202, tag 206, tag 231, tag 223, tag 207, tag 106, tag 348, tag 349, tag 107, tag 350, tag 351, tag 38, tag 152, tag 211, tag 388, tag 389, tag 12, tag 13, tag 47, tag 204, tag 439, tag 440
Present in FIX 5.0 SP2 only (14)
tag 1089, tag 1090, DisplayInstruction, tag 1133, tag 1092, TriggeringInstruction, StrategyParametersGrp, tag 1091, tag 1028, tag 1029, tag 1030, tag 1031, tag 1032, TrdRegTimestamps
Handle OrderCancelReplaceRequest in TypeScript
import { createFixEngine } from "@boarteam/fix";import { dictionary } from "@boarteam/fix-dict-fix44";const fix = createFixEngine(dictionary);const { message, issues } = fix.parse(raw);if (message.msgType === "G") { message.name; // "OrderCancelReplaceRequest" // fields are keyed by tag; repeating groups live on message.groups}// Problems come back as data, never as exceptions:issues; // FixIssue[]fix.validate(message); // dictionary-level problemsDecode 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