Cancel all orders for a league
Orders
Cancel all orders for a league
Asynchronously cancel every open order in a league
POST
Cancel all orders for a league
Schedule cancellation of every open order in a league. This endpoint dispatches asynchronously — it acknowledges withDocumentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
{ 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
League code. Get the list from
GET /exchange/getLeagues. Case-insensitive.Response
Always
true on success. The cancellations are processed asynchronously.Example
Errors
| Status | Meaning |
|---|---|
400 | league missing, not a string, or unknown. |
Authorizations
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 code from GET /exchange/getLeagues. Case-insensitive.
Response
Cancellation request accepted