# Outright League Settlement

The following format will be sent for the outright league settlement.

{% tabs %}
{% tab title="JSON" %}

```json
{
    "Header": {
      "Type": 43,
      "MsgSeq": 1,
      "MsgGuid": "8bda74bb-b8b1-404d-8c59-1fa8a2f59e86",
      "CreationDate": "2025-07-20T09:03:01.4668132Z",
      "ServerTimestamp": 1753002181466
    },
    "Body": {
      "Competition": {
        "Id": 67,
        "Name": "Premier League",
        "Type": 3,
        "Competitions": [
          {
            "Id": 2029,
            "Name": "2023/2024",
            "Type": 4,
            "Events": [
              {
                "FixtureId": 24603148,
                "Livescore": null,
                "Markets": [
                  {
                    "Id": 274,
                    "Name": "Outright Winner",
                    "Bets": [
                      {
                        "Id": 126691427424603148,
                        "Name": "Reliable Miss",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "1.44",
                        "Settlement": 2,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.754553Z",
                        "ParticipantId": 52280038
                      },
                      {
                        "Id": 15926367224603148,
                        "Name": "El Senor",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "12.1",
                        "Settlement": 1,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.753568Z",
                        "ParticipantId": 52280039
                      },
                      {
                        "Id": 7000359624603148,
                        "Name": "Brian Boru",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "8",
                        "Settlement": 1,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.753569Z",
                        "ParticipantId": 52280040
                      },
                      {
                        "Id": 55217832824603148,
                        "Name": "Master Black Jack",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "26",
                        "Settlement": 1,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.75357Z",
                        "ParticipantId": 52280041
                      },
                      {
                        "Id": 92419619724603148,
                        "Name": "Spithill",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "26.1",
                        "Settlement": 1,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.753572Z",
                        "ParticipantId": 52280294
                      },
                      {
                        "Id": 60866687824603148,
                        "Name": "Grandiscoccymelums",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "21",
                        "Settlement": 1,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.753572Z",
                        "ParticipantId": 52280295
                      },
                      {
                        "Id": 99788559924603148,
                        "Name": "Twin Spinner",
                        "Status": 3,
                        "StartPrice": "1.0",
                        "Price": "8.1",
                        "Settlement": 1,
                        "ProviderBetId": "8",
                        "LastUpdate": "2025-07-20T09:02:59.753573Z",
                        "ParticipantId": 52289573
                      }
                    ],
                    "ProviderMarkets": [
                      {
                        "Id": 8,
                        "Name": "Bet365",
                        "LastUpdate": "2025-07-20T09:02:55.345427Z",
                        "Bets": [
                          {
                            "Id": 3677,
                            "Name": "Reliable Miss",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "1.44",
                            "Settlement": 2,
                            "LastUpdate": "2025-07-20T09:02:59.754553Z",
                            "ParticipantId": 52280038
                          },
                          {
                            "Id": 3678,
                            "Name": "El Senor",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "12.1",
                            "Settlement": 1,
                            "LastUpdate": "2025-07-20T09:02:59.753568Z",
                            "ParticipantId": 52280039
                          },
                          {
                            "Id": 3679,
                            "Name": "Brian Boru",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "8",
                            "Settlement": 1,
                            "LastUpdate": "2025-07-20T09:02:59.753569Z",
                            "ParticipantId": 52280040
                          },
                          {
                            "Id": 3680,
                            "Name": "Master Black Jack",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "26",
                            "Settlement": 1,
                            "LastUpdate": "2025-07-20T09:02:59.75357Z",
                            "ParticipantId": 52280041
                          },
                          {
                            "Id": 3681,
                            "Name": "Spithill",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "26.1",
                            "Settlement": 1,
                            "LastUpdate": "2025-07-20T09:02:59.753572Z",
                            "ParticipantId": 52280294
                          },
                          {
                            "Id": 3682,
                            "Name": "Grandiscoccymelums",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "21",
                            "Settlement": 1,
                            "LastUpdate": "2025-07-20T09:02:59.753572Z",
                            "ParticipantId": 52280295
                          },
                          {
                            "Id": 3683,
                            "Name": "Twin Spinner",
                            "Status": 3,
                            "StartPrice": "1.0",
                            "Price": "8.1",
                            "Settlement": 1,
                            "LastUpdate": "2025-07-20T09:02:59.753573Z",
                            "ParticipantId": 52289573
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}
```

{% endtab %}

{% tab title="XML" %}

```xml

  <Header CreationDate="2025-04-06T08:54:00.337Z">
    <Type>43</Type>
    <MsgSeq>1</MsgSeq>
    <MsgGuid>9bdbf765-6bf7-478e-a03d-e6a4ee450cbb</MsgGuid>
    <ServerTimestamp>1743929640337</ServerTimestamp>
  </Header>
  <Body>
    <Competition Id="67" Name="Premier League" Type="3">
      <Competitions>
        <Competition Id="0" Type="4">
          <Events>
            <Event FixtureId="24180830">
              <Markets>
                <Market Id="274" Name="Outright Winner">
                  <Bets>
                    <Bet Id="90042060624180830" Name="Reliable Miss" Status="3" StartPrice="1.0" Price="1.44" Settlement="2" ProviderBetId="8" LastUpdate="2025-04-06T08:52:05.390Z" PriceIN="-2.272727272727273" PriceUS="-227" PriceUK="4/9" PriceMA="0.43999999999999995" PriceHK="0.43999999999999995" ParticipantId="52280038" />
                    <Bet Id="99059430024180830" Name="El Senor" Status="3" StartPrice="1.0" Price="12.1" Settlement="1" ProviderBetId="8" LastUpdate="2025-04-06T08:52:05.383Z" PriceIN="11.1" PriceUS="1110" PriceUK="111/10" PriceMA="-0.0900900900900901" PriceHK="11.1" ParticipantId="52280039" />
                    <Bet Id="173238704424180830" Name="Brian Boru" Status="3" StartPrice="1.0" Price="8" Settlement="1" ProviderBetId="8" LastUpdate="2025-04-06T08:52:05.383Z" PriceIN="7" PriceUS="700" PriceUK="7/1" PriceMA="-0.14285714285714285" PriceHK="7" ParticipantId="52280040" />
                    <Bet Id="32696960824180830" Name="Master Black Jack" Status="3" StartPrice="1.0" Price="26" Settlement="1" ProviderBetId="8" LastUpdate="2025-04-06T08:52:05.383Z" PriceIN="25" PriceUS="2500" PriceUK="25/1" PriceMA="-0.04" PriceHK="25" ParticipantId="52280041" />
                    <Bet Id="42015227324180830" Name="Spithill" Status="3" StartPrice="1.0" Price="26.1" Settlement="1" ProviderBetId="8" LastUpdate="2025-04-06T08:52:05.383Z" PriceIN="25.1" PriceUS="2510" PriceUK="251/10" PriceMA="-0.0398406374501992" PriceHK="25.1" ParticipantId="52280294" />
                    <Bet Id="72874497024180830" Name="Grandiscoccymelums" Status="3" StartPrice="1.0" Price="21" Settlement="1" ProviderBetId="8" LastUpdate="2025-04-06T08:52:05.383Z" PriceIN="20" PriceUS="2000" PriceUK="20/1" PriceMA="-0.05" PriceHK="20" ParticipantId="52280295" />
                  </Bets>
                </Market>
              </Markets>
            </Event>
          </Events>
        </Competition>
      </Competitions>
    </Competition>
  </Body>
</Message>
```

{% endtab %}
{% endtabs %}

## **Model**

### Competition

| Element      | Data Type | Description                            |
| ------------ | --------- | -------------------------------------- |
| Id           | int       | The unique ID of the competition       |
| Name         | string    | The competition name                   |
| Type         | enum      | Type 3 is League, Type 4 is Season     |
| Competitions | array     | Array of [Competitions](#competitions) |

### Competitions

| Element | Data Type | Description                        |
| ------- | --------- | ---------------------------------- |
| Id      | int       | The unique ID of the competition   |
| Name    | string    | The competition name               |
| Type    | enum      | Type 3 is League, Type 4 is Season |
| Events  | array     | Array of Events                    |

### Events

| **Element** | **Data Type** | **Description**                                                                      |
| ----------- | ------------- | ------------------------------------------------------------------------------------ |
| FixtureId   | int           | The unique ID of the fixture.                                                        |
| Livescore   | int           | [Livescore](https://docs.lsports.eu/u/trade/integration/message-structure/livescore) |
| Markets     | int           | Markets                                                                              |

### Markets

| **Element**     | **Data Type** | **Description**                                                                                       |
| --------------- | ------------- | ----------------------------------------------------------------------------------------------------- |
| Id              | int           | The unique ID of the market                                                                           |
| Name            | string        | The name of the market                                                                                |
| MainLine        | string        | **OPTIONAL**: Indicates the main line for relevant markets. Sends `suspended` if no open lines exist. |
| Bets            | array         | An array of Bets                                                                                      |
| ProviderMarkets | array         | An array of ProviderMarket                                                                            |

#### Bets

| **Element**      | **Data Type** | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Id               | int           | The unique ID of the bet. Unique within a specific market under a specific fixture.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Name             | string        | The name of the bet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Line             | string        | The line of the bet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| BaseLine         | string        | The baseline helps you group all bets that belong together. In the example above – all bets with the same baseline (0:2) belong together                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Status           | enum          | The [status](https://docs.lsports.eu/u/trade/enumerations/bet-settlements-and-statuses) of the bet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| StartPrice       | string        | The initial price of the bet, when it was first introduced                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Price            | string        | The price (odd) of the bet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Settlement       | enum          | Represents how the bet was [settled](https://docs.lsports.eu/u/trade/enumerations/bet-settlements-and-statuses) (resulted)                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ProviderBetId    | string        | **OPTIONAL**: The bet ID, as shown by the provider                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| LastUpdate       | DateTime      | Timestamp representing the time the bet was last updated                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ParticipantId    | int           | <p><strong>OPTIONAL</strong>: Reference ID to the participant in the fixture<br><code>Note: Provided in outright fixtures or in player's markets</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Probability      | double        | <p><strong>OPTIONAL</strong>: The Probability field is configurable per customer request. Probability won't be calculated and will be sent with value= "-1" in the following cases:</p><ol><li>One of the market bets is suspended.</li><li>one of the market bets is equal to or lower than 1.00 (similar to suspended).</li><li>The market is a special market and TRADE cannot calculate fair odds or probability.</li></ol><p>If the probability ="-1", customers should not calculate the cash-out amount for the bets under this market (or line in case of a market with lines)</p> |
| PlayerName       | string        | **OPTIONAL**: Appears only in player props markets, which are markets where the player's names are the bets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| SuspensionReason | int           | The [reason](https://docs.lsports.eu/u/trade/enumerations/bet-suspension-reasons) the bet was suspended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| PriceIN          | string        | **OPTIONAL**: The PriceIN field is configurable per customer request. The price (odd) of the bet in Indonesian odds format                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| PriceUS          | string        | **OPTIONAL**: The PriceUS field is configurable per customer request. The price (odd) of the bet in American odds format                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| PriceUK          | string        | **OPTIONAL**: The PriceUK field is configurable per customer request. The price (odd) of the bet in Fractional odds format                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| PriceMA          | string        | **OPTIONAL**: The PriceMA field is configurable per customer request. The price (odd) of the bet in Malaysian odds format                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| PriceHK          | string        | **OPTIONAL**: The PriceHK field is configurable per customer request. The price (odd) of the bet in Hong Kong odds format                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Order            | int           | **OPTIONAL**: Sequential integer (starting from 1) defining the intended display order of bets within a market. Defaults to `null` if ordering data is unavailable.                                                                                                                                                                                                                                                                                                                                                                                                                        |

#### ProviderMarkets

{% hint style="info" %}
**Note:** Available for ProviderOdds+ packages only. Contact your CSM to enable ProviderOdds+ access.
{% endhint %}

| **Element** | **Data Type** | **Description**                                            |
| ----------- | ------------- | ---------------------------------------------------------- |
| Id          | int           | Unique identifier for the provider (e.g., 8 for Bet365).   |
| Name        | string        | Name of the provider offering the odds (e.g., "Bet365").   |
| LastUpdate  | DateTime      | Timestamp of the last update to the provider odds.         |
| Bets        | array         | Contains an array of bet objects specific to the provider. |
