Skip to main content
GET
/
exchange
/
getOddsForAveragePrice
Get average price
curl --request GET \
  --url https://api.4casters.io/exchange/getOddsForAveragePrice \
  --header 'Authorization: Bearer <token>'
{
  "games": [
    {
      "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
        }
      ],
      "matchedVolume": 123,
      "mainHomeSpread": "<unknown>",
      "mainAwaySpread": "<unknown>",
      "mainTotal": "<unknown>",
      "odds": {
        "averageHomeMoneyline": 123,
        "bestHomeMoneyline": 123,
        "bestHomeMoneylineWithCommission": 123,
        "bestHomeMoneylinePriceLimit": 123,
        "averageAwayMoneyline": 123,
        "bestAwayMoneyline": 123,
        "bestAwayMoneylineWithCommission": 123,
        "bestAwayMoneylinePriceLimit": 123,
        "averageHomeSpread": 123,
        "bestHomeSpread": 123,
        "bestHomeSpreadWithCommission": 123,
        "bestHomeSpreadPriceLimit": 123,
        "mainHomeSpread": "<unknown>",
        "averageAwaySpread": 123,
        "bestAwaySpread": 123,
        "bestAwaySpreadWithCommission": 123,
        "bestAwaySpreadPriceLimit": 123,
        "mainAwaySpread": "<unknown>",
        "averageOver": 123,
        "bestOver": 123,
        "bestOverWithCommission": 123,
        "bestOverPriceLimit": 123,
        "averageUnder": 123,
        "bestUnder": 123,
        "bestUnderWithCommission": 123,
        "bestUnderPriceLimit": 123,
        "mainTotal": "<unknown>",
        "maxMoneyLineBet": 123,
        "homeMoneylineMaxBet": 123,
        "awayMoneylineMaxBet": 123,
        "maxTotalBet": 123,
        "maxOverBet": 123,
        "maxUnderBet": 123,
        "maxSpreadBet": 123,
        "maxHomeSpreadBet": 123,
        "maxAwaySpreadBet": 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 a truncated list of best and average prices for every game in a league. For each game and each market (moneyline / spread / total), the response includes:
  • the best price (the price on the top resting offer);
  • the average price you’d pay sweeping at least $500 of liquidity;
  • the maximum bet that could be filled at the best price and the average price.
The per-market arrays (awayMoneylines, homeMoneylines, etc.) are stripped from each game; only the summary odds block remains.
Unlike most endpoints, this one returns the games at the top level (not under data).

Request

GET /exchange/getOddsForAveragePrice
leagueRequested
string
required
League code (case-insensitive).
curl "https://api.4casters.io/exchange/getOddsForAveragePrice?leagueRequested=NBA" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

games
array
Each game is the standard Game shape with the following additional fields:

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

leagueRequested
string
required

League code (case-insensitive).

Response

Game best/average prices

games
object[]