Skip to main content
POST
Cancel all orders for a league
Schedule cancellation of every open order in a league. This endpoint dispatches asynchronously — it acknowledges with { ordersReceived: true } immediately and the cancels happen in the background. If you need to know which orders were cancelled, follow up with Get unmatched orders or subscribe to the user feed on the WebSocket Streaming API.

Request

POST /session/cancelAllForLeague
string
required
League code. Get the list from GET /exchange/getLeagues. Case-insensitive.

Response

boolean
Always true on success. The cancellations are processed asynchronously.

Example

Errors

Authorizations

Authorization
string
header
required

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

Body

application/json
league
string
required

League code from GET /exchange/getLeagues. Case-insensitive.

Response

Cancellation request accepted

data
object