Loading the API reference…

Browse the API reference

Mass cancel orders matching filters

post https://trading-gateway-api.prod.thinkalpha.io/orders/mass-cancels
Authentication
Bearer token or Client credentials (HTTP Basic)

Request body application/json required

Request to mass-cancel all open orders matching specified criteria.

  • AccountDescriptor[] required
  • closeout boolean required

    When true, use closeout semantics instead of cancel.

  • Instrument

    A discriminated union of instrument types.

  • side OrderSide

    Side of an order.

    one of "buy", "sell", "sell-short", "sell-split", "closeout", "multi-leg"
  • text string

    Optional notes for mass cancellation.

Responses

string[]