- By league —
POST /exchange/getOrderbookreturns every active game in a league, each with its full orderbook. Good for rendering a board. - By single game id —
POST /exchange/getSingleOrderbookreturns depth for one game (plus its child and prop markets). Good once you have a specificgameID.
gameID values from Get active game IDs (or from the id on any game in the league response below).
By league
POST
https://api.4cx.io/exchange/getOrderbook POSTAuthorization, Content-Type: application/json
leagueRequested is required. sportRequested is optional. sortBy is optional (e.g. matchedVolume, openInterest).
data.games carries live depth alongside the identity fields shown above; read data.games[].id to drill into a single game.
By single game id
POST
https://api.4cx.io/exchange/getSingleOrderbook POSTAuthorization, Content-Type: application/json
gameID is required — a 400 is returned if it is missing.
childGames holds related sub-markets (e.g. period markets) and propGames holds player props tied to this game. For a futures game, market is populated with the market name instead of null.