Markets results

Karyna Sirbiladze
2024-12-04T19:01:38Z

Market Result JSON description:

{
  "eventId": string, // Event string id
  "results": [
    {
      "key": {
        "eventId": string, // Event string id
        "tradingType": int, // Type of trading
        "marketType": int, // Type of market, for detail information please look at document described markets or on metadata service
        "period": int, // Period of match
        "subPeriod": nullable int, // Subperiod for match - depends on sport, for some sport like as football this field is null
      },
      "resultItems": [
        {
          "values": [],
          "outcomes": [
            {
              "outcomeType": int, //id type of outcome
              "outcomeValues": [array of string], //parameters of outcome
              "selectionKey": string, //outcome identificator for bet acceptance,
              "result": string, // type of result
              "deadHeat": nullable double, // Dead Heat is a rule of distribution of places on the basis of fairness, occurs when more than one athlete or team takes the same place.
              "isRemoved": bool // shows if result outcome was removed in current update
              "isCancelled": bool // shows if result outcome was cancclled
            }
          ],
          "isRemoved": bool // shows if result item was removed in current update
        }
      ],
      "lineItemId": string, //parent market group for current market, required for bet acceptance, if it is empty please look at market item lineItemId
      "sport": string, // market sport,
      "isRemoved": bool, // shows if whole result was removed in current update
      "resultExplanation": object, //description of results - object with fields templateId  - id of trmplate from queue with template notes and params - for example "0:2")
    }
  ],
  "dataVersion": int, //version of data entity
  "timestamp": DateTime // date time with time zone of last update
  "feedType": string //feed type, e.a. GT, BT

}

Result Types:

Win

Lose

Return

Return025

Return075

DeadHeat

Trading Types:

Match

UniEvent

Tournament

Comparison

HomeAway

Corners

YellowCards

Fouls

ShotsAll

ShotsOnTarget

MatchStat

Offsides

BallPossessions

SOG

PIM

Aces

DoubleFaults

ThreePoints

Rebounds

Assists

Steals

Statistics

Example:

{
  "eventId": "9690655",
  "results": [
    {
      "key": {
        "eventId": "9690655",
        "tradingType": 1,
        "marketType": 1,
        "period": 0
      },
      "resultItems": [
        {
          "values": [],
          "outcomes": [
            {
              "version": 7,
              "outcomeType": 0,
              "selectionKey": "[1,[],[0],1,0,[]]",
              "result": "Win",
              "deadHeat": null,
              "outcomeValues": [],
              "isRemoved": false,
              "isCancelled": false
            },
            {
              "version": 7,
              "outcomeType": 3,
              "selectionKey": "[1,[],[0],1,3,[]]",
              "result": "Lose",
              "deadHeat": null,
              "outcomeValues": [],
              "isRemoved": false
            }
          ],
          "isRemoved": false
        }
      ],
      "dataVersion": 2,
      "isRemoved": false,
      "resultExplanation": {
        "templateId": "ExpScoreString",
        "parameters": {
          "x": "0:2"
        }
      }
    }
  ],
  "dataVersion": 2,
  "timestamp": "2023-02-28T08:41:56.4922622Z",
  "feedType":"GT"
}