OR Combination Logic introduces a new capability within Bet Builder that
allows bettors to combine multiple selections using OR logic, while
continuing to combine that outcome with other markets using the existing
AND logic.
For example, instead of selecting Player A to Score, customers can now
select: Player A OR Player B to Score. The bet is successful if either
player scores, giving customers greater flexibility, a higher
probability of winning, and a more personalized betting experience.
Once you have Bet Builder package, you will be able to use this
feature.
This feature is currently not supported for MTS clients. Support for MTS
will be introduced in the future!
The Bet Builder Calculate and Calculate Filter APIs support OR
Combination Logic through a new request format. Only the request
structure has changed. The API response format remains unchanged. Refer
to the request examples below for implementation details.
Best Practice Guide
The first version of OR Combination Logic includes the following restrictions:
- Multiple OR Combos can be included within the same API request.
- A maximum of 3 selections is allowed within one OR Combo.
- OR Combos are only supported between selections from the
same match.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<selections
xmlns="http://schemas.sportradar.com/custombet/v1/endpoints">
<!-- First match Id-->
<selection id="sr:match:63123285" market_id="60"
outcome_id="3" odds="1.1"/>
<selection id="sr:match:63123285" market_id="83"
outcome_id="3" odds="1.2"/>
<orSelections>
<selection id="sr:match:63123285" market_id="40"
outcome_id="sr:player:123" specifiers="type=prematch"
odds="1.1"/> <selection id="sr:match:63123285"
market_id="40" outcome_id="sr:player:124"
specifiers="type=prematch" odds="1.1"/> <selection
id="sr:match:63123285" market_id="40"
outcome_id="sr:player:124" specifiers="type=prematch"
odds="1.1"/>
</orSelections>
<orSelections>
<selection id="sr:match:63123285" market_id="775"
outcome_id="sr:player:125"
specifiers="variant=pre:playerprops:62925395:1121881"
odds="1.2"/> <selection id="sr:match:63123285"
market_id="775" outcome_id="sr:player:126"
specifiers="variant=pre:playerprops:62925395:1121881"
odds="1.2"/>
</orSelections>
<!-- Second match Id-->
<selection id="sr:match:63123286" market_id="47"
outcome_id="434" odds="3.2"/>
<selection id="sr:match:63123286" market_id="1" outcome_id="3"
odds="3.1"/>
<orSelections>
<selection id="sr:match:63123286" market_id="40"
outcome_id="sr:player:223" specifiers="type=prematch"/
odds="3.01" > <selection id="sr:match:63123286"
market_id="40" outcome_id="sr:player:224"
specifiers="type=prematch" odds="2.3"/>
</orSelections>
</selections> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<filterSelections
xmlns="http://schemas.sportradar.com/custombet/v1/endpoints">
<selection id="sr:match:62925395">
<market market_id="1" specifiers="" outcome_id="1"
odds="1.35"/>
<market market_id="768"
specifiers="variant=pre:playerprops:62925395:1121881"
outcome_id="pre:playerprops:62925395:1121881:24" odds="3.32"/>
<market market_id="774"
specifiers="variant=pre:playerprops:62925395:1121881"
outcome_id="pre:playerprops:62925395:1121881:3"
odds="2.53"/>
<orSelections>
<market market_id="40" specifiers="type=prematch"
outcome_id="sr:player:123" odds="1.35"/>
<market market_id="40" specifiers="type=prematch"
outcome_id="sr:player:124" odds="1.35"/>
</orSelections>
<orSelections>
<market market_id="40" specifiers="type=prematch"
outcome_id="sr:player:223" odds="1.35"/>
<market market_id="40" specifiers="type=prematch"
outcome_id="sr:player:224" odds="1.35"/>
</orSelections>
</selection>
<selection id="sr:match:62925396">
<market market_id="1" specifiers="" outcome_id="1"
odds="1.35"/>
<market market_id="768"
specifiers="variant=pre:playerprops:62925395:1121881"
outcome_id="pre:playerprops:62925395:1121881:24" odds="3.32"/>
<market market_id="774"
specifiers="variant=pre:playerprops:62925395:1121881"
outcome_id="pre:playerprops:62925395:1121881:3" odds="2.53"/>
<orSelections>
<market market_id="40" specifiers="type=prematch"
outcome_id="sr:player:123" odds="1.35"/>
<market market_id="40" specifiers="type=prematch"
outcome_id="sr:player:124" odds="1.35"/>
</orSelections>
</selection>
</filterSelections>