Skip to main content
GET
Get orders for a game
For a given 4casters game id, returns the caller’s open orders and matched (ungraded) bets for that game. Graded bets are not returned by this endpoint — use Get graded wagers for those.

Request

GET /user/getOrdersForGame
string
required
4casters game id.

Response

array
Array of open orders on the game, sorted ascending by game start time. Same shape as Get unmatched orders.
array
Array of matched (ungraded) bets on the game. Same shape as Get matched bets.

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.

Query Parameters

gameID
string
required

A 4casters game id (ObjectID). Get game ids from GET /exchange/v2/getGames or GET /exchange/v2/getOrderbook.

Response

Orders and matched bets for the requested game

data
object