# Outright Livescore

This documentation describes the complete structure of an Outright Livescore Update message (Type 39) as delivered by TRADE.

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

```json
{
  "Header": {
    "Type": 39,
    "MsgSeq": 1,
    "MsgGuid": "b05d25f0-801a-40f9-912a-32db3af6cb19",
    "CreationDate": "2024-07-08T02:55:57.0920000+00:00",
    "SerializedCreationDate": "2024-07-08T02:55:57.092Z",
    "ServerTimestamp": 1720407357092
  },
  "Body": {
    "Competition": {
      "Id": 10872,
      "Name": "Los Alamitos Qh",
      "Type": 1,
      "Events": [
        {
          "FixtureId": 22808966,
          "Livescore": null,
          "Markets": null,
          "OutrightScore": {
            "ParticipantResults": [
              {
                "ParticipantId": 53278158,
                "Name": "Miss Apollidash",
                "Result": 3
              },
              {
                "ParticipantId": 51578950,
                "Name": "Terra Fina",
                "Result": 1
              },
              {
                "ParticipantId": 53266837,
                "Name": "Mister Twosday",
                "Result": 2
              }
            ],
            "Status": 3
          }
        }
      ]
    }
  }
}
```

{% endtab %}

{% tab title="XML" %}

```xml
  <Header>
      <Type>39</Type>
      <MsgSeq>1</MsgSeq>
      <MsgGuid>b05d25f0-801a-40f9-912a-32db3af6cb19</MsgGuid>
      <CreationDate>2024-07-08T02:55:57.0920000+00:00</CreationDate>
      <SerializedCreationDate>2024-07-08T02:55:57.092Z</SerializedCreationDate>
      <ServerTimestamp>1720407357092</ServerTimestamp>
  </Header>
  <Body>
      <Competition>
          <Id>10872</Id>
          <Name>Los Alamitos Qh</Name>
          <Type>1</Type>
          <Events>
              <FixtureId>22808966</FixtureId>
              <Livescore />
              <Markets />
              <OutrightScore>
                  <ParticipantResults>
                      <ParticipantId>53278158</ParticipantId>
                      <Name>Miss Apollidash</Name>
                      <Result>3</Result>
                  </ParticipantResults>
                  <ParticipantResults>
                      <ParticipantId>51578950</ParticipantId>
                      <Name>Terra Fina</Name>
                      <Result>1</Result>
                  </ParticipantResults>
                  <ParticipantResults>
                      <ParticipantId>53266837</ParticipantId>
                      <Name>Mister Twosday</Name>
                      <Result>2</Result>
                  </ParticipantResults>
                  <Status>3</Status>
              </OutrightScore>
          </Events>
      </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       |
| Events  | array     | Array of [Events](#outrightleague-model) |

#### **Events** <a href="#outrightleague-model" id="outrightleague-model"></a>

| **Element**   | **Data Type** | **Description**                                                  |
| ------------- | ------------- | ---------------------------------------------------------------- |
| FixtureId     | int           | The unique ID of the fixture.                                    |
| Livescore     | int           | [Livescore](/u/trade/integration/message-structure/livescore.md) |
| Markets       | int           | Markets                                                          |
| OutrightScore | object        | Contain the livescore per participant                            |

#### OutrightScore

| **Element**        | **Data Type** | **Description**                                                                          |
| ------------------ | ------------- | ---------------------------------------------------------------------------------------- |
| ParticipantResults | array         | An array of [ParticipantResults](#participantresults)                                    |
| Status             | enum          | The current [status ](/u/trade/enumerations/fixture-scoreboard-status.md)of the fixture. |

#### ParticipantResults

| **Element**   | **Data Type** | **Description**              |
| ------------- | ------------- | ---------------------------- |
| ParticipantId | int           | ID of the participant        |
| Name          | string        | Name of the participant      |
| Result        | int           | The score of the participant |


---

# 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/integration/message-structure/outright-livescore.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.
