/
v3.0.11Get access

getMaxBet

Returns the maximum bet allowed for the current selection. It provides the maximum stake amount and the unit stake used for the calculation. It is used to validate and cap user stakes in the betslip and to show the maximum allowed bet.

Request parameters:

Name
DescriptionTypeValuesDefault
events
List of events to return limit for. For an ordinal bet - its a single event list. For other bet types (for example express bets) - its a list of events and the return value is limit for total stake amount.array--
type
Bet type string"none", "single", "system", "multiple", "betBuilder", "chain", "yankee", "patient", "goliath", "heinz", "trixie", "superYankee", "superHeinz", "lucky_63" "lucky_15", "lucky_31", -
systemMinCount
Minimum count for system ( for example if systemMinCount: 2 and events count is 3, user expects 2 of 3 variants to win (2/3)).number--
eachWay
Indicates whether the bet is an each-way betbooleantrue / false-

Call example:

getMaxBet({
  type: 'system',
  events: [12345, 67890],
  systemMinCount: 2
})

Response examples:

{
  code: 0,
  rid: '158883022192943',
  data: {
    result: 0,
    result_text: null,
    details: {
      amount: 17021.3,
      unit_stake: 8900.2
    }
  }
}

Response parameters:

NameDescriptionTypeValues
amount
Maximum bet amount number-
unit_stake
Unit stake used in the calculation number-