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.

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
2currencyPairIdint648Underlying currency pair. Required.
3instrumentIdint648Instrument ID. Ignored if 0.
4kindint811=Future,2=Option,3=Perpetual,4=Spot, 5=FutureCombo, 6=OptionsCombo
5sideint810=Both
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.
5flagsuint810=isLastMessage
6reserveduint81Padding for byte alignment
7reserved2uint82Padding for byte alignment
8blockLengthOfCancelsuint16224 (bytes)
9numberOfCancelsuint162Number of canceled orders included in the following repeating group
->10orderIdint648Numeric exchange-assigned order ID
->11clientOrderIdint648Numeric client order ID; 0x8000000000000000L if quote
->12instrumentIdint648Numeric instrument ID

MassCancelReject (242)

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