# Probability

### **What is Probability?**

Probability, in the context of betting, represents the likelihood of a specific outcome occurring. TRADE calculates probability based on the current market odds and margin.

### **How is Probability Calculated?**

Probability is derived using the following formula:

**Probability = 1 / (current margin \* odd) = 1 / fair odd**

* **Current margin:** The margin applied to the odds by TRADE.
* **Odd:** The current odds for the specific outcome.
* **Fair odd:** The theoretical odds without any margin applied.

### **Receiving Probability Information:**

Probability is communicated to you as part of market update messages. It is displayed next to the Price (Odd) field within the Bet object for both InPlay and PreMatch events.

When the probability field value is "-1", customers should not calculate the cash-out amount for bets under this market or line.

### **Handling Bet Price Changes**

If there is a change in the probability of a bet due to a change in the price of another bet, even when the original bet price remains unchanged, a market update message is sent to the customer. For instance, in a 1x2 market:

* If the price of bet “1” changes, affecting the probability of all bets, a market update message is sent with all bet updates:
  * Bet “1” with price and probability update
  * Bets “2” and “x” with probability updates

This approach ensures that you are always updated with the latest data.

### **Cases Where Probability Is Sent as -1**

* **Provider Suspensions:** When a provider suspends a bet, TRADE cannot clean the margin for that provider if not all bets are provided by them. In such cases, the average margin from providers for the whole market (or line) is used, and the true odds are not sent.
* **Outright League Markets:** Probability is not supported.
* **Correct Score/Number of Goals Markets:** The probability is sent only for **tennis** and **table tennis** in these markets.
* **"Provider's margin Only" Markets:** Probability is not supported.
* **Suspended or Lower Odds:** If one of the market bets is equal to or lower than 1.00.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lsports.eu/u/trade/concepts/probability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
