/
v3.0.11Get access

setSportLossLimit

Sets the maximum amount a user is permitted to lose within a specific rolling time frame (Day, Week, Month) for either Sportsbook product

Request parameters:

NameDescriptionTypeValuesDefault
dailyLossLimit
The maximum loss allowed within a 24-hour periodnumber--
weeklyLossLimit
The maximum loss allowed within a 7-day periodnumber--
monthlyLossLimit
The maximum loss allowed within a 30-day periodnumber--
This method is usually used with these methods:

Call example:

setSportLossLimit({
  dailyLossLimit: 100,
  weeklyLossLimit: 2000,
  monthlyLossLimit: 30000
})

Response examples:

{
  code: 0,
  rid: '0',
  data: {
    result: 0,
    result_text: null,
    details: {
      Changed: [{
        Type: 7,
        Limit: 100,
        PeriodType: 2,
        Period: 1,
        ProductCategoryId: 1
      }, {
        Type: 7,
        Limit: 2000,
        PeriodType: 3,
        Period: 1,
        ProductCategoryId: 1
      }, {
        Type: 7,
        Limit: 30000,
        PeriodType: 4,
        Period: 1,
        ProductCategoryId: 1
      }],
      UnChanged: []
    }
  }
}

Response parameters:

NameDescriptionTypeValues
Changed
Contains limits that were successfully updated in this requestarray-
└─
object
└─ Type
The constant ID for the limit categorynumber-
└─ Limit
The monetary value of the limitnumber-
└─ PeriodType
The time duration constant 2 = Daily 3 = Weekly 4 = Monthlynumber2, 3, 4
└─ Period
Represents a single unit of the selected PeriodTypenumber-
└─ ProductCategoryId
The identifier for the product affectednumber-
└─
string-
UnChanged
Contains limits that were not modifiedarray-
└─
object
└─ Type
The constant ID for the limit categorynumber-
└─ Limit
The monetary value of the limitnumber-
└─ Period
Represents a single unit of the selectednumber-
└─ PeriodType
The time duration constant 2 = Daily 3 = Weekly 4 = Monthlynumber2, 3, 4
└─ ProductCategoryId
The identifier for the product affectednumber-