Skip to main content
GET
/
exchange
/
getSingleOrderbook
Get single orderbook
curl --request GET \
  --url https://api.4casters.io/exchange/getSingleOrderbook \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "game": {
      "id": "<string>",
      "parentGameID": "<string>",
      "cheapDataUID": "<string>",
      "league": "<string>",
      "sport": "<string>",
      "start": "2023-11-07T05:31:56Z",
      "ended": true,
      "live": true,
      "featured": true,
      "eventName": "<string>",
      "tournamentName": "<string>",
      "periodName": "<string>",
      "isSpecials": true,
      "participants": [
        {
          "id": "<string>",
          "longName": "<string>",
          "shortName": "<string>",
          "mainPitcher": "<string>",
          "rotationNumber": "<string>",
          "futuresSide": "<string>",
          "score": 123
        }
      ],
      "homeMoneylines": [
        {
          "id": "<string>",
          "createdBy": "<string>",
          "sumUntaken": 123,
          "odds": 123,
          "bet": 123,
          "gameID": "<string>",
          "takenRatio": 123,
          "expiry": "2023-11-07T05:31:56Z",
          "createdAt": "2023-11-07T05:31:56Z",
          "mockOrder": true,
          "gameStartExpiry": true,
          "isPostArb": true,
          "participantID": "<string>",
          "spread": 123,
          "total": 123,
          "market": "<string>"
        }
      ],
      "awayMoneylines": [
        {
          "id": "<string>",
          "createdBy": "<string>",
          "sumUntaken": 123,
          "odds": 123,
          "bet": 123,
          "gameID": "<string>",
          "takenRatio": 123,
          "expiry": "2023-11-07T05:31:56Z",
          "createdAt": "2023-11-07T05:31:56Z",
          "mockOrder": true,
          "gameStartExpiry": true,
          "isPostArb": true,
          "participantID": "<string>",
          "spread": 123,
          "total": 123,
          "market": "<string>"
        }
      ],
      "homeSpreads": {},
      "awaySpreads": {},
      "over": {},
      "under": {},
      "homeMoneylines1x2": {},
      "awayMoneylines1x2": {},
      "draw1x2": {},
      "mainHomeSpread": "<unknown>",
      "mainAwaySpread": "<unknown>",
      "mainTotal": "<unknown>",
      "openInterest": 123,
      "matchedVolume": 123
    },
    "orderSummary": [
      {}
    ],
    "childGames": [
      {
        "id": "<string>",
        "parentGameID": "<string>",
        "cheapDataUID": "<string>",
        "league": "<string>",
        "sport": "<string>",
        "start": "2023-11-07T05:31:56Z",
        "ended": true,
        "live": true,
        "featured": true,
        "eventName": "<string>",
        "tournamentName": "<string>",
        "periodName": "<string>",
        "isSpecials": true,
        "participants": [
          {
            "id": "<string>",
            "longName": "<string>",
            "shortName": "<string>",
            "mainPitcher": "<string>",
            "rotationNumber": "<string>",
            "futuresSide": "<string>",
            "score": 123
          }
        ],
        "homeMoneylines": [
          {
            "id": "<string>",
            "createdBy": "<string>",
            "sumUntaken": 123,
            "odds": 123,
            "bet": 123,
            "gameID": "<string>",
            "takenRatio": 123,
            "expiry": "2023-11-07T05:31:56Z",
            "createdAt": "2023-11-07T05:31:56Z",
            "mockOrder": true,
            "gameStartExpiry": true,
            "isPostArb": true,
            "participantID": "<string>",
            "spread": 123,
            "total": 123,
            "market": "<string>"
          }
        ],
        "awayMoneylines": [
          {
            "id": "<string>",
            "createdBy": "<string>",
            "sumUntaken": 123,
            "odds": 123,
            "bet": 123,
            "gameID": "<string>",
            "takenRatio": 123,
            "expiry": "2023-11-07T05:31:56Z",
            "createdAt": "2023-11-07T05:31:56Z",
            "mockOrder": true,
            "gameStartExpiry": true,
            "isPostArb": true,
            "participantID": "<string>",
            "spread": 123,
            "total": 123,
            "market": "<string>"
          }
        ],
        "homeSpreads": {},
        "awaySpreads": {},
        "over": {},
        "under": {},
        "homeMoneylines1x2": {},
        "awayMoneylines1x2": {},
        "draw1x2": {},
        "mainHomeSpread": "<unknown>",
        "mainAwaySpread": "<unknown>",
        "mainTotal": "<unknown>",
        "openInterest": 123,
        "matchedVolume": 123
      }
    ],
    "propGames": [
      {
        "id": "<string>",
        "parentGameID": "<string>",
        "cheapDataUID": "<string>",
        "league": "<string>",
        "sport": "<string>",
        "start": "2023-11-07T05:31:56Z",
        "ended": true,
        "live": true,
        "featured": true,
        "eventName": "<string>",
        "tournamentName": "<string>",
        "periodName": "<string>",
        "isSpecials": true,
        "participants": [
          {
            "id": "<string>",
            "longName": "<string>",
            "shortName": "<string>",
            "mainPitcher": "<string>",
            "rotationNumber": "<string>",
            "futuresSide": "<string>",
            "score": 123
          }
        ],
        "homeMoneylines": [
          {
            "id": "<string>",
            "createdBy": "<string>",
            "sumUntaken": 123,
            "odds": 123,
            "bet": 123,
            "gameID": "<string>",
            "takenRatio": 123,
            "expiry": "2023-11-07T05:31:56Z",
            "createdAt": "2023-11-07T05:31:56Z",
            "mockOrder": true,
            "gameStartExpiry": true,
            "isPostArb": true,
            "participantID": "<string>",
            "spread": 123,
            "total": 123,
            "market": "<string>"
          }
        ],
        "awayMoneylines": [
          {
            "id": "<string>",
            "createdBy": "<string>",
            "sumUntaken": 123,
            "odds": 123,
            "bet": 123,
            "gameID": "<string>",
            "takenRatio": 123,
            "expiry": "2023-11-07T05:31:56Z",
            "createdAt": "2023-11-07T05:31:56Z",
            "mockOrder": true,
            "gameStartExpiry": true,
            "isPostArb": true,
            "participantID": "<string>",
            "spread": 123,
            "total": 123,
            "market": "<string>"
          }
        ],
        "homeSpreads": {},
        "awaySpreads": {},
        "over": {},
        "under": {},
        "homeMoneylines1x2": {},
        "awayMoneylines1x2": {},
        "draw1x2": {},
        "mainHomeSpread": "<unknown>",
        "mainAwaySpread": "<unknown>",
        "mainTotal": "<unknown>",
        "openInterest": 123,
        "matchedVolume": 123
      }
    ]
  }
}

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.

Returns the nested orderbook for a single game — spreads and totals are objects keyed by spread / total number rather than flattened arrays. Also returns any child games (props, alternate periods) and an orderSummary of the caller’s own resting orders for the league. For the simpler flat shape, prefer Get orderbook.

Request

GET /exchange/getSingleOrderbook
gameID
string
required
Game id.
curl "https://api.4casters.io/exchange/getSingleOrderbook?gameID=65b67450503180295ade9216" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

data.game
object
Game object with nested-orderbook fields. The standard Game fields apply (see Get games), plus:
data.orderSummary
array
The caller’s own resting orders across the entire league (not just this game). Useful for rendering “your offers” badges in a UI.
data.childGames
array
Child games (alternate periods, etc.) of the requested game. Same shape as data.game.
data.propGames
array
Prop games tied to the requested game.
Each individual order has the standard order shape:

Errors

StatusMeaning
400gameID missing.

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

Game id.

Response

Single-game orderbook

data
object