Skip to main content
Order Mass Cancel Request(q) message will trigger cancellation of a group of orders. From Release 1.3.10, it is possible to cancel orders by DeribitLabel, and the option 10 of the MassCancelRequestType(530) has been added.

Arguments

TagNameTypeRequiredComments
11ClOrdIDStringYesUnique ID of Order Mass Cancel Request(q) as assigned by the client, max 64 grapheme clusters. This tag operates on grapheme clusters. A grapheme cluster is a user-perceived character, which can be represented by several unicode codepoints. Please refer to Unicode specification for more details about the grapheme clusters
530MassCancelRequestTypeintYesSpecifies the type of cancellation requested.

Valid values:

  • 7 = all orders,
  • 5 = orders by security type,
  • 1 = orders by symbol,
  • 10 = orders by DeribitLabel

100010DeribitLabelStringif MassCancelRequestType(530)=10A custom label for your order, max 64 grapheme clusters. Can be used by Order Cancel Request(F) to amend the order later on. Equivalent of REST/WS cancel_by_label
167SecurityTypeStringIf MassCancelRequestType(530)=5Describes type of security.

Possible values:

  • FUT for futures,
  • OPT for options,
  • FUTCO for future combo,
  • OPTCO for option combo

55SymbolStringIf MassCancelRequestType(530)=1The symbols for which to cancel all orders
15CurrencyStringNoTo cancel only certain currency if it is applicable. See Security List Request(x)
9031FreezeQuotesBooleanNoWhether or not to reject incoming quotes for 1 second after cancelling

Response

After the cancellation, the server responds with an Order Mass Cancel Report(r).