Market contingency
Some markets are connected to each other and should not be possible to combine in a Pick'em bet. The most important factors here are the Player and Competitors/Teams parameters. If, for example, the same Player is involved then Pick'em selections should not be possible to add together.
With market contingency, the general recommended flow is as follows:
Player picks a market that has market contingency restrictions.
UI should now disable/hide other markets that clash with the initial market.
The same goes for every market the player picks after the first pick.
UI Behaviour Rules
Case 1:
ContingencyKeyoverlapsOne side the
ContingencyScopeis empty, the other is not emptyResult: Reject
Case 2:
ContingencyKeyoverlapsContingencyScopehas overlapping IdsResult: Reject
Case 3:
ContingencyKeyoverlapsBoth
ContingencyScopes are emptyResult: Reject
Case 4:
ContingencyKeyoverlapsContingencyScopedisjoint (no overlap) - both are not emptyResult: Allow
Case 5:
ContingencyKeyis emptyResult: Allow
Examples
Example 1
{
Id: 1500,
Name: "Team2 total",
IsActive: true,
ContingencyKey: [1001-MT3-MT3, 1001-MT3-MT4],
ContingencyScope: [C1112],
Selections: {…},
}{
Id: 1501,
Name: "Team1 total",
IsActive: true,
ContingencyKey: [1001-MT4-MT4, 1001-MT3-MT4],
ContingencyScope: [C1112],
Selections: {…},
}Market 1500 and 1501 can not be combined since they have overlapping values in ContingencyKey and ContingencyScope
Example 2
{
Id: 1300,
Name: "Haso runs",
IsActive: true,
ContingencyKey: [1001-MT1-MT1, 1001-MT1-MT2],
ContingencyScope: [P112],
Selections: {…},
}
,
{
Id: 1301,
Name: "Kako runs",
IsActive: true,
ContingencyKey: [1001-MT1-MT1, 1001-MT1-MT2],
ContingencyScope: [P1113],
Selections: {…},
}{
Id: 1400,
Name: "Total",
IsActive: true,
ContingencyKey: [1001-MT2-MT2, 1001-MT1-MT2],
ContingencyScope: [],
Selections: {…},
}If Market 1400 is selected, Markets 1300 and 1301 should be considered invalid in the betslip (or removed from the Selection Deck in the UI) because they share overlapping ContingencyKeys, and Market 1400 has an empty ContingencyScope, which implies it applies to all scopes
In another scenario,
Markets 1301 and 1302 can be combined and accepted for betting because, although they share overlapping ContingencyKeys, their ContingencyScopes contain non-overlapping values.
Example 3
{
Id: 1500,
Name: "Team2 total",
IsActive: true,
ContingencyKey: [1001-MT3-MT3, 1001-MT2-MT3],
ContingencyScope: [C1112],
Selections: {…},
}{
Id: 1600,
Name: "Total",
IsActive: true,
ContingencyKey: [1001-MT2-MT2, 1001-MT2-MT3],
ContingencyScope: [],
Selections: {…},
}Markets 1500 and 1600 cannot be combined because they have overlapping ContingencyKeys, and Market 1600 has an empty ContingencyScope, which applies to all scopes.
Last updated