---
title: "Calculate-filter"
canonical_url: "https://docs.sportradar.com/resources/unified-odds-feed/docs/bet-builder/api/calculate-filter"
markdown_url: "https://docs.sportradar.com/resources/unified-odds-feed/docs/bet-builder/api/calculate-filter.md"
last_updated: "2026-11-16T12:42:07Z"
---

# Calculate-filter

Used this endpoint to get the odds and fair probabilities of the Custom Bet, and **determine which Custom Bet combinations are viable.**

Market and outcome elements will contain an extra "conflict" attribute, which will indicate whether specific markets and outcomes conflict with the current selections or not. The endpoint will return a response that contains the new "conflict" attribute in all the available selections for the selected markets.

> **Tip**
>
> **Best Practice:**
>
> - Conflict Handling: Use the "conflict" attribute to filter out or visually distinguish conflicting selections in the UI. This helps prevent users from creating invalid bet combinations.
> - Selected Items: Any selections already made will be marked as conflict=false. These should remain interactive in the UI. If a user clicks on a selection that is already chosen and marked as conflict=false, treat this as a deselection action, not a new selection.

**Request Parameters**

| Element              | Description                                                                               | Attribute                 | Attribute Description                                                                                                                                                                                      | Possible Values                                                                                                                                      |
| -------------------- | ----------------------------------------------------------------------------------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **filterselections** | Root element                                                                              | `xmlns`                   | XML namespace.                                                                                                                                                                                             | Always **<http://schemas.sportradar.com/custombet/v1/endpoints>**                                                                                    |
| **selection**        | Element containing all the information about a certain selection of markets and outcomes. | `id`                      | This id represents a unique match.                                                                                                                                                                         | `sr:match:123456`                                                                                                                                    |
|                      |                                                                                           | `market_id`               | The unique id for a specific market.                                                                                                                                                                       | Integer value:<br>• 18<br>• 26<br>• 551                                                                                                              |
|                      |                                                                                           | `specifiers` *(optional)* | Specifiers are a way to uniquely identify a market with additional parameters together with the market id.                                                                                                 | Example:<br>In a total market, the specifier could be seen as `specifiers="total=1.5"`, and the different outcomes as `"under 1.5"` or `"over 1.5"`. |
|                      |                                                                                           | `outcome_id`              | The identifier of a unique outcome within a specific market.                                                                                                                                               | Integer or string value, depending on a market:<br>• 12<br>• 70<br>• `sr:goal_range:7+-1343`<br>• `sr:player:123456`                                 |
|                      |                                                                                           | `odds`                    | The odds price (odds with key) that you want to use for this selection. If provided, this odds will be used to calculate the Custom Bet odds.<br>You can use any odds sources. Check this page for more #. | `1.32`                                                                                                                                               |

**Response**

| Element                   | Description                                                                     | Attribute(s)    | Attribute Description                                                                                                              | Possible Values                                                   |
| ------------------------- | ------------------------------------------------------------------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| **calculation\_response** | Root element                                                                    | `xmlns`         | XML namespace.                                                                                                                     | Always **<http://schemas.sportradar.com/custombet/v1/endpoints>** |
|                           |                                                                                 | `generated_at`  | Date and time of generated response in ISO 8601 format.                                                                            | `2019-05-06T12:34:49+00:00`                                       |
| **calculation**           | Element for calculation requests.                                               | `odds`          | Total calculated odds for the selected custom bet, returned in EU odds format.<br>**Note:** This is affected by the chosen ladder. | Number value:<br>• 1.34<br>• 2.23<br>• 0.22                       |
|                           |                                                                                 | `probability`   | The probability of this outcome returned in decimal.                                                                               | Number value < 1:<br>• 0.34<br>• 0.22<br>• 0.12                   |
|                           |                                                                                 | `harmonization` | The result of using the harmonization calculation approach.                                                                        | True/False                                                        |
| **available\_selections** | This child element is identical to the available selection endpoint’s response. | `conflict`      | Indicates whether the selection conflicts with the currently selected combo.                                                       | True/False                                                        |
