Skip to main content

Mass Cancel Granularity

Mass cancels are scoped to an instrument or underlying currency pair and per side of the order book, using the fields in the MassCancelRequest below. There is no equivalent of a QuoteSetID for mass cancels. Because Starbase applies a speed bump to aggressive orders, individual cancel requests can reach the matching engine ahead of incoming aggressor orders. This makes fine-grained cancellation with regular CancelOrderRequest messages practical without requiring a broader mass cancel. Mass cancels are aligned with single cancels in their treatment of speed-bumped orders: both immediately cancel pending orders without converting them to IOC. A pending order that is mass-cancelled is removed before it enters the book and will not match. See Cancelling Pending Orders for full details.

MassCancelRequest (140)

Request to cancel all orders and quotes submitted via the binary SBE order gateway that meet the specified criteria.
FieldNameTypeLengthDescription
1correlationIdint648Client-assigned ID
2indexIdint648Underlying index ID. Required.
3instrumentIdint648Instrument ID. 0 → ignore this filter
4productTypeint810=ALL (ignore this filter)
1=Options
2=Futures (includes Perpetuals)
3=Combo Futures
4=Combo Options
5=Spot
5sideint810=Both (ignore this filter)
1=BUY
-1=SELL

MassQuoteCancelRequest (145)

Request to cancel all active quotes for the specified MMP group.
FieldNameTypeLengthDescription
1correlationIdint648Client-assigned ID
2mmpGroupIdint648Identifier of MMP group
3sideint810=Both
1=BUY
-1=SELL

MassCancelResponse (240)

Acknowledges the successful execution of a MassCancelRequest or MassQuoteCancelRequest.
FieldNameTypeLengthDescription
1transactTimeint648Nanoseconds since epoch. Time of entry into the order book
2execIdint648Exchange-assigned event ID
3correlationIdint648Client-assigned ID
4receiveTimeint648Nanoseconds since epoch. Time of receipt of order on the gateway.
5totalOrderCountint324Number of canceled orders included in the following repeating group

MassCancelReject (242)

Reject generated in case a MassCancelRequest or MassQuoteCancelRequest is unsuccessful.
FieldNameTypeLengthDescription
1transactTimeint648Nanoseconds since epoch. Time of entry into the order book
2execIdint648Exchange-assigned event ID
3correlationIdint648Client-assigned ID
4reasonuint81Rejection reason code. See Rejection Reason Codes for possible values.
5detailschar0-255ASCII-encoded string