Skip to main content

Amending an existing order

Cross-Session Amending: Orders can be amended from a different SBE session than the one that submitted them. For example, an order submitted on session A can be amended on session B.Response Routing: AmendOrderResponse is sent to both the session that sent the AmendOrderRequest and the session that originally submitted the order. All subsequent events (fills, further amends, cancels) route to the original submit session.Event Scoping: An SBE connection only receives events about orders submitted through that same connection.

AmendOrderRequest (110)

Request to change the modifiable fields of an existing order.
FieldNameTypeLengthDescription
1clientOrderIdint648Numeric client order ID
2correlationIdint648Client-assigned ID
3instrumentIdint648Numeric instrument ID
4limitPriceFixedPoint98New price
5amountDecimal729New amount
6displayAmountDecimal729New display amount with ? decimal places. If displayAmount=amount, the order is not considered an iceberg order.
7flagsuint81See the table below.
The table below outlines the content of field 7 (flags) of AmendOrderRequest.
Bit number (from last to first)NameDescription
1Post-only (amend)Enables post-only that amends the order to the best bid/ask if the edit would make it immediately executable. The amended price is then validated against price limits. Mutually exclusive with Post-only (reject)
2Post-only (reject)Enables post-only that rejects the edit if it would make the order immediately executable. The original order remains in the book unchanged. Mutually exclusive with Post-only (amend)
3Reduce-onlyThis order will be amended at entry and at later times to ensure it can only fully or partially close an open position
4MMPThe order will be subject to the default Market Maker Protection group
5resetMmpUnfreeze orders MMP group
6Reserved for future use
7Reserved for future use
8Reserved for future use

AmendOrderResponse (210)

Response to confirm an AmendOrderRequest was successful, sent from the exchange to the client. Any immediate fills generated by the AmendOrderRequest will be included in the AmendOrderResponse and will NOT be sent additionally in an OrderUpdate.
FieldNameTypeLengthDescription
1transactTimeint648Nanoseconds since epoch. Time of entry into the order book
2execIdint648Exchange-assigned event ID
3clientOrderIdint648Numeric client order ID
4correlationIdint648Client-assigned ID
5orderIdint648Numeric exchange assigned order ID
6instrumentIdint648Numeric instrument ID
7limitPriceFixedPoint98Price. Can differ from submitted price when post-only (amend) is enabled
8amountDecimal729Amount. Can differ from submitted amount when reduce-only is enabled
9filledAmountDecimal729Filled amount
10receiveTimeint648Nanoseconds since epoch. Time of receipt of order on the gateway.
11orderStateint811=Active
2=filled
3=cancelled
4=queued (speed bumped)
12cancelReasonint81See Order Response Cancel Reasons
13reservedint162Padding for byte alignment
14blockLengthOfFillsuint16224 (bytes)
15numberOfFillsuint162Indicates the length of the following repeating group containing all immediate fills when the order was submitted
->16matchIdint648Transaction ID representing match, shared by all fills within match
->17fillPriceFixedPoint98Price of fill
->18fillAmountDecimal729Amount of fill
19blockLengthOfLegsuint16233 (bytes)
20numberOfLegsuint162Indicates the length of the following repeating group containing all combo leg quantities and prices.
Non-zero for trades on combo instruments only.
->21matchIdint648Transaction ID representing match.
->22instrumentIdint648Numeric instrument ID.
->23legQtyDecimal729Quantity of this leg in the combo instrument
->24legPriceFixedPoint98Price of this leg in the combo instrument
->25legSideint811=BUY
-1=SELL

AmendOrderReject (212)

Reject generated in case an AmendOrderRequest is unsuccessful.
FieldNameTypeLengthDescription
1transactTimeint648Nanoseconds since epoch. Time of entry into the order book
2clientOrderIdint648Numeric client order ID
3correlationIdint648Client-assigned ID
4orderIdint648Numeric exchange assigned order ID
5instrumentIdint648Numeric instrument ID
6reasonint81Rejection reason code. See Rejection Reason Codes for possible values.
7detailsLengthuint81Length of details field
8detailschar0-255ASCII-encoded string