Skip to main content
POST
Cancel all orders for a game
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
string
required
The game whose orders should be cancelled.
string
Optional. Cancel only orders of this market type — one of moneyline, spread, total. When omitted, all market types are cancelled.

Response

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

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
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[]