Skip to main content
There are two ways to read depth:
  • By leaguePOST /exchange/getOrderbook returns every active game in a league, each with its full orderbook. Good for rendering a board.
  • By single game idPOST /exchange/getSingleOrderbook returns depth for one game (plus its child and prop markets). Good once you have a specific gameID.
Get the 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 POST
Headers: Authorization, Content-Type: application/json leagueRequested is required. sportRequested is optional. sortBy is optional (e.g. matchedVolume, openInterest).
Each entry in 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 POST
Headers: Authorization, 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.