Skip to main content
POST
/
session
/
cancelAllOrdersForGame
Cancel all orders for a game
curl --request POST \
  --url https://api.4casters.io/session/cancelAllOrdersForGame \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "gameID": "688c0516fbc14da0c202d426",
  "type": "spread"
}
'
{
  "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 on a single game. Optionally restrict to a single market type to leave other markets in place.

Request

POST /session/cancelAllOrdersForGame
gameID
string
required
The game whose orders should be cancelled.
type
string
Optional. Cancel only orders of this market type — one of moneyline, spread, total. When omitted, all market types are cancelled.
curl -X POST https://api.4casters.io/session/cancelAllOrdersForGame \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "gameID": "688c0516fbc14da0c202d426",
    "type": "spread"
  }'

Response

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

Errors

StatusMeaning
400gameID missing / invalid, or type is not one of the allowed values.

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
gameID
string
required

The game whose orders to cancel.

type
enum<string>

Optional. Cancel only orders of this market type.

Available options:
moneyline,
spread,
total

Response

Per-order cancel results

data
object[]