# Outright League Fixture

This documentation describes the complete structure of an Outright League Fixture Update message (Type 38) as delivered by TRADE.

{% tabs %}
{% tab title="JSON" %}
```json
[
   {
      "Header":{
         "Type":38,
         "MsgSeq":1,
         "MsgGuid":"f2e6f2b1-c737-4847-bd8f-c8505daf104f",
         "CreationDate":"2024-06-25T08:18:00.8515215Z",
         "ServerTimestamp":1719303480851
      },
      "Body":{
         "Competition":{
            "Id":67,
            "Name":"Premier League",
            "Type":3,
            "Competitions":[
               {
                  "Id":2029,
                  "Name":"2023/2024",
                  "Type":4,
                  "Events":[
                     {
                        "FixtureId":22751084,
                        "OutrightLeague":{
                           "Subscription":{
                              "Type":2,
                              "Status":1
                           },
                           "Sport":{
                              "Id":6046,
                              "Name":"Football"
                           },
                           "Location":{
                              "Id":248,
                              "Name":"International"
                           },
                           "LastUpdate":"2024-06-25T08:17:39.179941Z",
                           "Status":1,
                           "ExtraData":[
                              {
                                 "Name":"WithLivescore",
                                 "Value":"false"
                              },
                              {
                                 "Name":"WithInPlay",
                                 "Value":"false"
                              }
                           ]
                        },
                        "Livescore":null,
                        "Markets":null
                     }
                  ]
               }
            ]
         }
      }
   }
]
```
{% endtab %}

{% tab title="XML" %}
```xml
<Header>
	<Type>38</Type>
	<MsgSeq>1</MsgSeq>
	<MsgGuid>f2e6f2b1-c737-4847-bd8f-c8505daf104f</MsgGuid>
	<CreationDate>2024-06-25T08:18:00.8515215Z</CreationDate>
	<ServerTimestamp>1719303480851</ServerTimestamp>
</Header>
<Body>
	<Competition>
		<Id>67</Id>
		<Name>Premier League</Name>
		<Type>3</Type>
		<Competitions>
			<Id>2029</Id>
			<Name>2023/2024</Name>
			<Type>4</Type>
			<Events>
				<FixtureId>22751084</FixtureId>
				<OutrightLeague>
					<Subscription>
						<Type>2</Type>
						<Status>1</Status>
					</Subscription>
					<Sport>
						<Name>Football</Name>
					</Sport>
					<Location>
						<Id>248</Id>
						<Name>International</Name>
					</Location>
					<LastUpdate>2024-06-25T08:17:39.179941Z</LastUpdate>
					<Status>1</Status>
					<ExtraData>
						<Name>WithLivescore</Name>
						<Value>false</Value>
					</ExtraData>
					<ExtraData>
						<Name>WithInPlay</Name>
						<Value>false</Value>
					</ExtraData>
				</OutrightLeague>
				<Livescore></Livescore>
				<Markets></Markets>
			</Events>
		</Competitions>
	</Competition>
</Body>
```
{% 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 |
| Competitons | array     | Array of Competitons               |

### Competitons

| 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](#outrightleague-model) |

#### Events

| **Element**    | **Data Type** | **Description**               |
| -------------- | ------------- | ----------------------------- |
| FixtureId      | int           | The unique ID of the fixture. |
| OutrightLeague | int           | OutrightLeague                |
| Livescore      | int           | [Livescore](livescore)        |
| Markets        | int           | [Markets](broken-reference)   |

#### OutrightLeague

|                  |               |                                                                                                             |
| ---------------- | ------------- | ----------------------------------------------------------------------------------------------------------- |
| **Element**      | **Data Type** | **Description**                                                                                             |
| Subscription     | object        | [Subscription](../fixture#subscription)                                                                     |
| Sport            | object        | [Sport](../fixture#sport)                                                                                   |
| Location         | object        | [Location](../fixture#location)                                                                             |
| StartDate        | string        | The fixture start date                                                                                      |
| LastUpdate       | string        | ISO timestamp of the last update to the provider odds                                                       |
| Status           | enum          | The current [status ](../../enumerations/fixture-scoreboard-status#fixture-scoreboard-status)of the fixture |
| FixtureExtraData | array         | An array of [FixtureExtraData](../fixture#fixtureextradata)                                                 |
