Request a cancel/replace order over FIX API.
A Cancel/Replace Order message in the FIX API is used to modify or replace an existing order that has been previously submitted to the order management system. This message allows traders to adjust various parameters of an order without having to completely cancel it and submit a new one, thus helping to manage risk and optimize execution strategies.
The Cancel/Replace Order message allows traders to modify existing orders by updating parameters such as quantity, price, and time in force without canceling and re-entering the entire order. This functionality is crucial for managing orders effectively and adapting to changing market conditions while minimizing disruption to trading activities.
Message Fields
Tag | Field Name | Required | Note |
---|---|---|---|
50 | SenderSubID | Yes | Part of the Header. Participant ID created at Zero Hash with specific relationships on the CLOB. Must match field 50 on the message that the OrigClOrdID references |
1 | Account | Yes | Trading Account on the CLOB. This information will be shared during onboarding. Must match field 1 on the message that the OrigClOrdID references |
11 | ClOrdId | Yes | Unique identifier of the order. Must be unique for each session |
21 | HandlInst | Yes | 1 = Automated execution order, private, no Broker intervention 2 = Automated execution order, public, Broker intervention OK 3 = Manual order, best execution |
22 | SecurityIDSource | Yes | 8 = Exchange Symbol |
38 | OrderQty | Yes | The amount of the base asset to be transacted e.g. 10.5146 |
40 | OrdType | Yes | Must match OrdType on the message that the OrigClOrdID references |
41 | OrigClOrdId | Yes | An identifier matching the ClOrdID from the OrderSingle or OrderCancelReplaceRequest that this request applies to |
44 | Price | - | Required for limit OrdTypes |
48 | SecurityID | Yes | Must match the symbol on the message that the OrigClOrdID references |
54 | Side | Yes | Must match the side on the message that the OrigClOrdID references. e.g., 1 = Buy, 2 = Sell |
55 | Symbol | - | Must match the symbol on the message that the OrigClOrdID references |
60 | TransactTime | Yes | Time of execution/order creation. UTC time in datetime to millisecond or nanosecond format |
99 | StopPx | - | Specifies the quote price at which the order activates for Stop order types |
126 | ExpireTime | - | Required if TimeInForce = GTT. (UTC time in datetime format - 17:18:02.544) |
Standard Trailer |
Example Message
8 = FIXT.1.1
9 = 256
35 = G
34 = 219
49 = YOURSENDERCOMP
50 = [ParticipantId]
52 = 20230307-17:01:04.493
56 = ZERO
1 = [Account]
11 = 15638138052644930000
21 = 1
22 = 8
38 = 0.002
40 = 2
41 = 1124638138050559054000
44 = 22100
48 = BTC/USD
54 = 1
55 = BTC/USD
59 = 1
60 = 20230307-17:01:04.493123
167 = CS
10 = 245
8 = FIXT.1.1|9 = 256|35 = G|34 = 219|49 = YOURSENDERCOMP|50 = [ParticipantId]|52 = 20230307-17:01:04.493|56 = ZERO|1 = [Account]|11 = 15638138052644930000|21 = 1|22 = 8|38 = 0.002|40 = 2|41 = 1124638138050559054000|44 = 22100|48 = BTC/USD|54 = 1|55 = BTC/USD|59 = 1|60 = 20230307-17:01:04.493123|167 = CS|10 = 245