# OnOddsChange

This message would be responsible for updating the status of a match, market status, and selection odds updates.

*MessageType: onoddschange*

Here is a sample JSON payload on what you should expect to receive on your end:

<details>

<summary>Match Type Payload</summary>

```
{
    "sportId": 20,
    "sportName": "Table Tennis",
    "segmentId": 1017,
    "segmentName": "Czech Republic",
    "leagueId": 36349,
    "leagueName": "Czech Liga Pro",
    "isOfferedLive": true,
    "fixtureSpecifier": "sr:match:48588059",
    "fixtureProviderId": "48588059",
    "fixtureName": "Tomasch, David vs. Kubat, Vladimir",
    "fixtureStartDate": "2024-03-15T07:00:00.0000000",
    "fixtureStatusId": 1,
    "fixtureStatusName": "Live",
    "fixtureTypeId": 0,
    "fixtureTypeName": "Match",
    "homeScore": "2",
    "awayScore": "2",
    "homeYellowCards": 3,
    "awayYellowCards": 0,
    "homeRedCards": 0,
    "awayRedCards": 1,
    "homeCorners": 3,
    "awayCorners": 5,
    "homeId": "sr:competitor:949787",
    "awayId": "sr:competitor:883397",
    "timeStampSent": 1710487390565,
    "timeStampReceived": 1710487390647,
    "sportNameTranslations": [],
    "segmentNameTranslations": [],
    "leagueNameTranslations": [],
    "fixtureNameTranslations": [],
    "markets": [
        {
            "marketTemplateId": "238",
            "marketName": "Total Points",
            "line": "88.5",
            "marketStatusId": 1,
            "marketStatusName": "Active",
            "marketSpecifier": "total=88.5",
            "marketNameTranslations": [],
            "selections": [
                {
                    "selectionTemplateId": "12",
                    "selectionName": "Over 88.5",
                    "odds": 2.0,
                    "isActive": true,
                    "probability": 0.49416,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "13",
                    "selectionName": "Under 88.5",
                    "odds": 1.95,
                    "isActive": true,
                    "probability": 0.50584,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "selectionNameTranslations": []
                }
            ]
        },
        {
            "marketTemplateId": "245",
            "marketName": "5th Game - Winner",
            "line": "0",
            "marketStatusId": 1,
            "marketStatusName": "Active",
            "marketSpecifier": "gamenr=5",
            "marketNameTranslations": [],
            "selections": [
                {
                    "selectionTemplateId": "4",
                    "selectionName": "Tomasch, David",
                    "odds": 22.0,
                    "isActive": true,
                    "probability": 0.04032,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "5",
                    "selectionName": "Kubat, Vladimir",
                    "odds": 1.04,
                    "isActive": true,
                    "probability": 0.95968,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "selectionNameTranslations": []
                }
            ]
        },
        {
            "marketTemplateId": "238",
            "marketName": "Total Points",
            "line": "87.5",
            "marketStatusId": 0,
            "marketStatusName": "Inactive",
            "marketSpecifier": "total=87.5",
            "marketNameTranslations": [],
            "selections": []
        }
    ],
    "raw": null
}
```

</details>

<details>

<summary>Outright Type Payload</summary>

```
{
    "sportId": 2,
    "sportName": "Basketball",
    "segmentId": 15,
    "segmentName": "USA",
    "leagueId": 33946,
    "leagueReference": [],
    "leagueName": "NCAA Division I National Championship, Women",
    "isOfferedLive": false,
    "fixtureSpecifier": "sr:season:117439",
    "fixtureProviderId": "117439",
    "fixtureName": "NCAA Division I, National Championship Women 24/25",
    "fixtureStartDate": "2025-03-15T00:00:00.0000000",
    "fixtureStatusId": 0,
    "fixtureStatusName": "Prematch",
    "fixtureTypeId": 1,
    "fixtureTypeName": "Outright",
    "homeScore": "0",
    "awayScore": "0",
    "homeId": "",
    "homeReference": [],
    "awayId": "",
    "awayReference": [],
    "currentServer": 0,
    "periodScores": [],
    "timeStampSent": 1728265213384,
    "timeStampReceived": 1728265213483,
    "timeStampProcessed": 0,
    "sportNameTranslations": [],
    "segmentNameTranslations": [],
    "leagueNameTranslations": [],
    "fixtureNameTranslations": [],
    "markets": [
        {
            "marketTemplateId": "534",
            "marketName": "NCAA(B) Women - John R. Wooden Award - Winner",
            "line": "0",
            "marketStatusId": 1,
            "marketStatusName": "Active",
            "marketSpecifier": "variant=pre:markettext:266455",
            "marketNameTranslations": [],
            "selections": [
                {
                    "selectionTemplateId": "pre:outcometext:26860547",
                    "selectionName": "Bueckers, Paige",
                    "odds": 2.5,
                    "probability": 0.2992380054092867,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860547?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26860623",
                    "selectionName": "Fulwiley, Milaysia",
                    "odds": 26.0,
                    "probability": 0.02498104043445215,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860623?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26860625",
                    "selectionName": "Morrow, Aneesah",
                    "odds": 19.0,
                    "probability": 0.03436206719616843,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860625?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26860627",
                    "selectionName": "McMahon, Cotie",
                    "odds": 61.0,
                    "probability": 0.010562689245181143,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860627?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26860629",
                    "selectionName": "Van Lith, Hailey",
                    "odds": 76.0,
                    "probability": 0.00846804045210716,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860629?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26860633",
                    "selectionName": "Latson, Taniya",
                    "odds": 100.0,
                    "probability": 0.006364504058536693,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860633?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26860635",
                    "selectionName": "Betts, Lauren",
                    "odds": 41.0,
                    "probability": 0.015760795674289556,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26860635?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:26882577",
                    "selectionName": "Watkins, Juju",
                    "odds": 2.75,
                    "probability": 0.2679438598035724,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:26882577?variant=pre:markettext:266455",
                    "selectionNameTranslations": []
                }
            ]
        },
        {
            "marketTemplateId": "534",
            "marketName": "NCAA(B) Women - Winner",
            "line": "0",
            "marketStatusId": 1,
            "marketStatusName": "Active",
            "marketSpecifier": "variant=pre:markettext:240261",
            "marketNameTranslations": [],
            "selections": [
                {
                    "selectionTemplateId": "pre:outcometext:1202696",
                    "selectionName": "North Carolina Tar Heels",
                    "odds": 250.0,
                    "probability": 0.002867887709759959,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:1202696?variant=pre:markettext:240261",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:1202697",
                    "selectionName": "Maryland Terrapins",
                    "odds": 325.0,
                    "probability": 0.0021483483237851003,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:1202697?variant=pre:markettext:240261",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:1202698",
                    "selectionName": "Syracuse Orange",
                    "odds": 425.0,
                    "probability": 0.0016504991222586354,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:1202698?variant=pre:markettext:240261",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:1202700",
                    "selectionName": "Texas Longhorns",
                    "odds": 7.5,
                    "probability": 0.09991545867508572,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:1202700?variant=pre:markettext:240261",
                    "selectionNameTranslations": []
                },
                {
                    "selectionTemplateId": "pre:outcometext:1202702",
                    "selectionName": "Stanford Cardinal",
                    "odds": 71.0,
                    "probability": 0.010140981259995577,
                    "voidProbability": 0,
                    "wonProbability": 0,
                    "lostProbability": 0,
                    "halfWonProbability": 0,
                    "halfLostProbability": 0,
                    "isActive": true,
                    "selectionSpecifier": "uof:3/sr:sport:2/534/pre:outcometext:1202702?variant=pre:markettext:240261",
                    "selectionNameTranslations": []
                }
            ]
        }
    ],
    "raw": ""
}
```

</details>

Properties:

<table><thead><tr><th width="184">Name</th><th width="190">Type</th><th>Description</th></tr></thead><tbody><tr><td>sportId</td><td>int</td><td>Unique id of a sport.</td></tr><tr><td>sportName</td><td>string</td><td>Name of the sport.</td></tr><tr><td>segmentId</td><td>int</td><td>Unique id of a segment under a sport.</td></tr><tr><td>segmentName</td><td>string</td><td>Name of the segment.</td></tr><tr><td>leagueId</td><td>int</td><td>Unique id of a league under a segment.</td></tr><tr><td>leagueName</td><td>string</td><td>Name of the league.</td></tr><tr><td>isOfferedLive</td><td>bool</td><td>Determines if the fixture is booked for live or not.</td></tr><tr><td>fixtureSpecifier</td><td>string</td><td>Unique id of the fixture.</td></tr><tr><td>fixtureProviderId</td><td>string</td><td>Unique id of the fixture without including the URN type</td></tr><tr><td>fixtureName</td><td>string</td><td>Name of the fixture.</td></tr><tr><td>fixtureStartDate</td><td>datetime</td><td>Date on when will the match would kickoff.</td></tr><tr><td>fixtureStatusId</td><td>int</td><td>The current status of the fixture.<br><br>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#fixture-status">Fixture Status</a> for more details.</td></tr><tr><td>fixtureStatusName</td><td>string</td><td>The current status of the fixture.<br><br>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#fixture-status">Fixture Status</a> for more details.</td></tr><tr><td>fixtureTypeId</td><td>int</td><td>The type of the fixture<br><br>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#fixture-type">Fixture Type</a> for more details</td></tr><tr><td>fixtureTypeName</td><td>string</td><td>The type of the fixture<br><br>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#fixture-type">Fixture Type</a> for more details</td></tr><tr><td>homeScore</td><td>string</td><td>The current score of the home team.</td></tr><tr><td>awayScore</td><td>string</td><td>The current score of the away team.</td></tr><tr><td>homeId</td><td>string</td><td>Id of a home competitor.</td></tr><tr><td>homeReference</td><td>List&#x3C;<a href="#reference-model">Reference</a>></td><td>List of reference ids for different services<br><br>See <a href="#reference-model">Reference</a> for more details</td></tr><tr><td>awayId</td><td>string</td><td>Id of an away competitor.</td></tr><tr><td>awayReference</td><td>List&#x3C;<a href="#reference-model">Reference</a>></td><td>List of reference ids for different services<br><br>See <a href="#reference-model">Reference</a> for more details</td></tr><tr><td>timeStampSent</td><td>long</td><td>epoch timestamp on when the message was sent by the provider</td></tr><tr><td>timeStampReceived</td><td>long</td><td>epoch timestamp on when our service received the message from the provider</td></tr><tr><td>sportNameTranslations</td><td>List&#x3C;SportNameTranslation></td><td>See <a href="#sport-translation-model">Sport Translation Mode</a>l for more details.</td></tr><tr><td>segmentNameTranslations</td><td>List&#x3C;SegmentNameTranslation></td><td>See <a href="#segment-translation-model">Segment Translation Model</a> for more details.</td></tr><tr><td>leagueNameTranslations</td><td>List&#x3C;LeagueNameTranslation></td><td>See <a href="#league-translation-model">League Translation Model</a> for more details.</td></tr><tr><td>fixtureNameTranslations</td><td>List&#x3C;FixtureNameTranslation></td><td>See <a href="#fixture-translation-model">Fixture Translation Model</a> for more details.</td></tr><tr><td>markets</td><td>List&#x3C;Market></td><td>See <a href="#market-model">Market Model</a> for more details.</td></tr><tr><td>currentServer</td><td>int</td><td>Player who's currently serving the ball (Tennis, Table Tennis):<br><br>0 - Underfined<br>1 - Home<br>2 - Away</td></tr><tr><td>periodScores</td><td>List&#x3C;PeriodScore></td><td>See <a href="#period-score-model">Period Score Model</a> for more details</td></tr><tr><td>currentPeriod</td><td>int</td><td>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#period">Period Model</a> for more details</td></tr><tr><td>currentMinute</td><td>int</td><td>current minute in a period or half</td></tr><tr><td>currentSecond</td><td>int</td><td>current second in a period or half</td></tr></tbody></table>

### Reference Model

| Name | Type   | Description                                                      |
| ---- | ------ | ---------------------------------------------------------------- |
| Type | string | <p>name of the service<br><br>Possible Values:<br>- LiveData</p> |
| Id   | int    | unique id reference for the service type                         |

### Sport Translation Model

| Name         | Type   | Description                                                                                                               |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| languageCode | string | <p>Language Abbreviation.<br><br><a href="/pages/6qxpjsI0gFPeYZgO8h1m#language-code">See available languages here</a></p> |
| sportName    | string | Translated name of the sport.                                                                                             |

### Segment Translation Model

| Name         | Type   | Description                                                                                                               |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| languageCode | string | <p>Language Abbreviation.<br><br><a href="/pages/6qxpjsI0gFPeYZgO8h1m#language-code">See available languages here</a></p> |
| segmentName  | string | Translated name of the segment                                                                                            |

### League Translation Model

| Name         | Type   | Description                                                                                                               |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| languageCode | string | <p>Language Abbreviation.<br><br><a href="/pages/6qxpjsI0gFPeYZgO8h1m#language-code">See available languages here</a></p> |
| leagueName   | string | Translated name of the league.                                                                                            |

### Fixture Translation Model

| Name         | Type   | Description                                                                                                               |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| languageCode | string | <p>Language Abbreviation.<br><br><a href="/pages/6qxpjsI0gFPeYZgO8h1m#language-code">See available languages here</a></p> |
| fixtureName  | string | Translated name of the fixture.                                                                                           |

### Market Model

| Name                   | Type                                                     | Description                                                                                                                                                                                                                                                       |
| ---------------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| marketTemplateId       | string                                                   | Template id of the market                                                                                                                                                                                                                                         |
| marketName             | string                                                   | Name of the market                                                                                                                                                                                                                                                |
| line                   | string                                                   | Line assigned for the market                                                                                                                                                                                                                                      |
| marketStatusId         | int                                                      | <p>The current status of the market.<br><br>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#market-status">Market Status</a> for more details.</p>                                                                                                                       |
| marketStatusName       | string                                                   | <p>The current status of the market.<br><br>See <a href="/pages/6qxpjsI0gFPeYZgO8h1m#market-status">Market Status</a> for more details.</p>                                                                                                                       |
| marketSpecifier        | string                                                   | Unique market specifier                                                                                                                                                                                                                                           |
| marketNameTranslations | List<[MarketNameTranslation](#market-translation-model)> | See [Market Translation Model](#market-translation-model) for more details.                                                                                                                                                                                       |
| selections             | List<[Selection](#league-translation-model)>             | See [Selection Model](#selection-model) for more details.                                                                                                                                                                                                         |
| nextBetStop            | long?                                                    | The next time this outright market will be closed for betting. Many outright markets are closed for betting during the next round of matches etc. and then odds are updated after the matches and market is re-opened for betting. This is specified in UNIX time |
| startTime              | long?                                                    | The date/time the event will start. This is specified in UNIX time.                                                                                                                                                                                               |
| endTime                | long?                                                    | The date/time the event will end. This is specified in UNIX time.                                                                                                                                                                                                 |

### Market Translation Model

| Name         | Type   | Description                                                                                                               |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| languageCode | string | <p>Language Abbreviation.<br><br><a href="/pages/6qxpjsI0gFPeYZgO8h1m#language-code">See available languages here</a></p> |
| marketName   | string | Translated name of the market.                                                                                            |

### Selection Model

| Name                      | Type                                                           | Description                                                                       |
| ------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| selectionTemplateId       | string                                                         | Template id of the selection.                                                     |
| selectionName             | string                                                         | Name of the selection.                                                            |
| odds                      | decimal                                                        | Latest odds offered.                                                              |
| isActive                  | bool                                                           | Determines wether the selection is active or not.                                 |
| probability               | double                                                         | Latest odds probability                                                           |
| voidProbability           | double                                                         | Latest odds probability                                                           |
| wonProbability            | double                                                         | Latest odds probability                                                           |
| lostProbability           | double                                                         | Latest odds probability                                                           |
| halfWonProbability        | double                                                         | Latest odds probability                                                           |
| halfLostProbability       | double                                                         | Latest odds probability                                                           |
| selectionNameTranslations | List<[SelectionNameTranslation](#selection-translation-model)> | See [Selection Translation Model ](#selection-translation-model)for more details. |

### Selection Translation Model

| Name          | Type   | Description                                                                                                               |
| ------------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| languageCode  | string | <p>Language Abbreviation.<br><br><a href="/pages/6qxpjsI0gFPeYZgO8h1m#language-code">See available languages here</a></p> |
| selectionName | string | Translated name of the selection.                                                                                         |

### Period Score Model

| Name            | Type   | Description                  |
| --------------- | ------ | ---------------------------- |
| Home            | int    | Home score during the period |
| Away            | int    | Away Score during the period |
| MatchStatusCode | string | Match Status Code            |
| PeriodType      | string | Period Type                  |


---

# 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://flyingcockatoo.gitbook.io/odds-feed-documentation/odds-feed-integration/message-types/onoddschange.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.
