/
v3.0.11Get access

sportCastCreateBet

Creates a bet in the sport cast context. It places a bet while the user is watching a stream and returns the bet ID, betslip UID, stake, and whether the user is betting. It is used for in-stream betting and to show bet confirmation during live viewing.

Request parameters:

NameDescriptionTypeValuesDefault
amount
Stake amount for the betnumber--
betslipUid
Unique ID of the SportCast betslip, which we get from 'addToBetslip' postMessage.string--

Call example:

sportCastCreateBet({
  amount: 0.1,
  betslip_uid: '6732275e-f986-4f65-991c-6445dea1db0f'
})

Response examples:

{
  code: 0,
  rid: 40832892,
  data: {
    result: 0,
    result_text: null,
    details: {
      Id: 6158935547,
      BetSlipUid: '6732275e-f986-4f65-991c-6445dea1db0f',
      Amount: 0.1,
      IsPlayerBetting: false,
      ClientId: 0
    }
  }
}

Response parameters:

NameDescriptionTypeValues
Id
Bet identifier number-
BetSlipUid
Betslip unique identifier string-
Amount
Stake amount number-
IsPlayerBetting
Whether the user is placing a bet booleantrue / false
ClientId
Client identifier number-