Price Calculation

In order to calculate and display the resulting odds of selections made by the player, you need to call the BetBuilder price API endpoint with the specified parameters. You will be required to call this endpoint each time a player makes changes to their BetBuilder selections, you can find the endpoint in the Bets API section.

Bets API
  • requestId - unique key for request

  • eventId - ID of selected event

  • bets - List of markets and selections the player made

{
  "requestId": "string",
  "segmentId": 1,
  "eventId": 1,
  "bets": [
    {
      "marketId": 0,
      "selectionId": 0
    },
    {
      "marketId": 1,
      "selectionId": 1
    }
  ]
}

In response, you will receive an answer with requestId and price:

{
  "requestId": "string",
  "price": 0,
  "timeStamp": "2024-05-28T10:57:37.8963945+00:00",
  "rejectInfo": null
}

In case of request rejection, rejectInfo property will contain rejection information. Possible rejection reasons can be checked via the corresponding dictionary endpoint.

Dictionary API

Last updated