Skip to main content
POST
/
session
/
cancelAllOrders
Cancel all orders
curl --request POST \
  --url https://api.4casters.io/session/cancelAllOrders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "data": [
    {
      "success": true,
      "reason": "<string>",
      "sessionID": "<string>",
      "description": "<string>",
      "odds": 123,
      "filled": 123,
      "offered": 123,
      "remaining": 123,
      "gameID": "<string>",
      "userReference": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.4casters.io/llms.txt

Use this file to discover all available pages before exploring further.

Cancel every open order belonging to the caller across every game and league. Use this for emergency stops — a kill switch from a monitoring system, for example. For a less destructive alternative that lets you resume orders later, see POST /session/pauseOrders (sister endpoint that cancels and remembers; pair with resumeOrders).

Request

POST /session/cancelAllOrders Takes no parameters.
curl -X POST https://api.4casters.io/session/cancelAllOrders \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

data
array
Per-order cancel results. Same shape as Cancel an order.

Example

{
  "data": [
    {
      "success": true,
      "sessionID": "65b036dfb31407c2b6bc1cfe",
      "odds": -110,
      "filled": 0,
      "offered": 0,
      "remaining": 100,
      "gameID": "65f0c3c24ef07d0008abc123"
    },
    {
      "success": true,
      "sessionID": "65b036e0b31407c2b6bc1d08",
      "odds": 125,
      "filled": 25,
      "offered": 0,
      "remaining": 75,
      "gameID": "65f0c4ae4ef07d0008abc456"
    }
  ]
}

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

The body is of type object.

Response

Per-order cancel results

data
object[]