Skip to main content
POST
Cancel All Orders
The same sweep is available over WebSocket as cancelAllOrders on the Order Management Stream, so capital can be released from whichever connection is still up. See Releasing Capital on Disconnect for when to use which.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
clientRequestId
string<uuid>

Client-generated UUID for correlation.

contract
string

Contract name. Omit to cancel every open order.

Response

action
string
required

Always cancelAll.

clientRequestId
string<uuid>
required

Client-generated UUID for correlation.

count
integer
required

Number of cancels queued.

cancels
object[]
required

One entry per queued cancel, newest first.

contract
string

Contract name. Absent when every contract was swept.

unqueued
object[]

Open orders the sweep did not queue a cancel for. Present only when the queue refused part-way.