Log in

G Order Cancel/Replace Request

This message is used to change the parameters of an existing order.

Do not use this message to cancel the remaining quantity of an outstanding order, use Order Cancel Request <35=F> instead.

This request can be used to change any valid attribute of an open order, e.g. to reduce or increase quantity, to change limit price, or to change instructions. Subject to agreement between counterparties, it can be used to re-open a filled order by increasing OrderQty (38).

An immediate response to this message is required. It is recommended that an Execution Report <35=8> with ExecType (150) = "Pending Replace", be sent unless the request can be immediately accepted or rejected.

The request will only be accepted if the order can successfully be pulled from the exchange without executing. Requests which cannot be processed will be rejected using the Order Cancel Reject <35=9> message. The Order Cancel Reject <35=9> message should provide the ClOrdID (11) and OrigClOrdID (41) values which were specified on the request.

While it is necessary for the ClOrdID (11) to change and be unique, the broker's OrderID (37) field does not necessarily have to change as a result of an accepted request.

The protocol supports the chaining of multiple cancel/replace requests, though trading counterparties may not support this functionality. Care should be taken if the order owner wishes to send a cancel/replace request when there is any cancel/replace requests which have not yet been accepted or rejected. In general:

  • The order sender should chain client order ids on an 'optimistic' basis, i.e. set the OrigClOrdID (41) to the last non-rejected ClOrdID (11) sent
  • The order receiver should chain client order ids on a 'pessimistic' basis, i.e. set the OrigClOrdID (41) on execution reports that convey the receipt or successful application of a cancel/replace and Order Cancel Reject <35=9> messages to be the last 'accepted' ClOrdID (11)

In the event that an application chains order cancel/replaces rapidly, it should ensure that each request contains the desirable state of the order in full. For example, if an attempt is made to change the limit price and then an immediate request to change the quantity is issued, then if the desired behaviour is that both the limit price and quantity should be changed then the second request should include the revised limit price, in case the first request is rejected.

All of the application-level fields in the original order should be retransmitted with the original values in the request, except the fields that are being changed.

Any field may be changed with this message except those in the Instrument component block and limited changes to the Side (54) field, noted below. Applications may further restrict which fields are allowed to change, so bilateral agreement is required. For example, some firms may not allow fields such as Side (54) to change. Applications should validate the request to ensure that it does not attempt to change a field that cannot change; if it does, a Order Cancel Reject <35=9> with CxlRejReason (102) = 2 should be sent.

When modifying ExecInst (18) values in a replacement order, it is necessary to re-declare all ExecInst (18)s. ExecInst (18) values will not be carried forward from the original order to the replacement unless re-declared.

Structure

TagNameTypeRequiredDescription
Component
Required
37StringUnique identifier of most recent order as assigned by sell-side (broker, exchange, ECN)
ComponentThe set of "Parties" (firm identification) fields defined in "Common Components of Application Messages"
229LocalMktDate
75LocalMktDate
41String
Required
ClOrdID of the previous non rejected order (NOT the initial order of the day) when canceling or replacing an order
11String
Required
Unique identifier of replacement order as assigned by institution or by the intermediary with the closest association with the investor. Note that this identifier will be used in ClOrdID field of the Cancel Reject message if the replacement request is rejected
526String
583String
66StringRequired for List Orders
586UTCTimestampTransactTime of the last state change that occurred to the original order
1String
660Int Enum
581Int Enum
589Char Enum
590Char Enum
591Char Enum
70StringUsed to assign an overall allocation id to the block of preallocations
ComponentNumber of repeating groups for pre-trade allocation
63Char Enum
64LocalMktDateTakes precedence over SettlType value and conditionally required/omitted for specific SettlType values
544Char Enum
635String Enum
21Char Enum
18String EnumCan contain multiple instructions, space delimited. Replacement order must be created with new parameters (i.e. original order values will not be brought forward to replacement order unless redefined within this message)
110Quantity
111Quantity
100Exchange
ComponentSpecifies the number of repeating TradingSessionIDs
Component
Required
The set of "Instrument" (symbology) fields defined in "Common Components of Application Messages" Must match original order
ComponentThe set of "FinancingDetails" (symbology) fields defined in "Common Components of Application Messages" Must match original order
ComponentNumber of underlyings
54Char Enum
Required
Should match original order's side, however, if bilaterally agreed to the following groups could potentially be interchanged: Buy and Buy Minus Sell, Sell Plus, Sell Short, and Sell Short Exempt Cross, Cross Short, and Cross Short Exempt
60UTCTimestamp
Required
Time this order request was initiated/released by the trader or trading system
854Int Enum
Component
Required
The set of "OrderQtyData" fields defined in "Common Components of Application Messages" Note: OrderQty value should be the "Total Intended Order Quantity" (including the amount already executed for this chain of orders)
40Char Enum
Required
423Int Enum
44PriceRequired for limit OrdTypes. For F/X orders, should be the "all-in" rate (spot rate adjusted for forward points). Can be used to specify a limit price for a pegged order, previously indicated, etc
99PriceRequired for OrdType = "Stop" or OrdType = "Stop limit"
Component
ComponentThe set of "YieldData" (yield-related) fields defined in "Common Components of Application Messages"
ComponentThe set of "PegInstruction" fields defined in "Common Components of Application Messages"
ComponentThe set of "DiscretionInstruction" fields defined in "Common Components of Application Messages"
847Int EnumThe target strategy of the order
848StringFor further specification of the TargetStrategy
849PercentageMandatory for a TargetStrategy=Participate order and specifies the target particpation rate. For other order types optionally specifies a volume limit (i.e. do not be more than this percent of the market volume)
376String
377Boolean Enum
15CurrencyMust match original order
59Char EnumIf absent, DAY is used
168UTCTimestampCan specify the time at which the order should be considered valid
432LocalMktDateConditionally required if TimeInForce = GTD and ExpireTime is not specified
126UTCTimestampConditionally required if TimeInForce = GTD and ExpireDate is not specified
427Int EnumStates whether executions are booked out or accumulated on a partially filled GT order
ComponentThe set of "CommissionData" fields defined in "Common Components of Application Messages"
528Char Enum
529String Enum
582Int Enum
121Boolean EnumWhether the broker is requested to execute a Forex accommodation trade in conjunction with the security trade
120CurrencyRequired if ForexReq = Y
775Int EnumMethod for booking out this order. Used when notifying a broker that an order to be settled by that broker is to be booked out as an OTC derivative (e.g. CFD or similar). If absent, regular booking is used
58String
354LengthMust be set if EncodedText field is specified and must immediately precede it
355DataEncoded (non-ASCII characters) representation of the Text field in the encoded format specified via the MessageEncoding field
193LocalMktDateCan be used with OrdType = "Forex - Swap" to specify the "value date" for the future portion of an F/X swap
192QuantityCan be used with OrdType = "Forex - Swap" to specify the order quantity for the future portion of an F/X swap
640PriceCan be used with OrdType = "Forex - Swap" to specify the price for the future portion of an F/X swap
77Char EnumFor use in derivatives omnibus accounting
203Int EnumFor use with derivatives, such as options
210Quantity
114Boolean EnumRequired for short sell orders
480Char EnumFor CIV - Optional
481Char Enum
513StringReference to Registration Instructions message for this Order
494StringSupplementary registration information for this Order
Component
Required