๐Ÿท๏ธ MarketSelection

A MarketSelection is an object representing a wager/selection for a specific betting market.

{
    "id": "MRKT_d85823e475d543ed9fdc5ff208c4b1e1",
    "type": "straight",
    "event": {
      "id": "EVNT_531a3e9af2024b5fadc993bb7596310a",
      "oddsjamId": "77646-19370-2024-04-29",
      "sport": "Basketball",
      "league": "NBA",
      "name": "Boston Celtics @ Miami Heat",
      "nameSpecial": null,
      "startTime": "2024-04-29T23:30:00Z",
      "startDate": "2024-04-29",
      "sportId": "SPRT_basketball",
      "leagueId": "LGUE_nba",
      "contestantAway": {
        "id": "TEAM_0bea24fff0ba45a6ba2f88b0217d224e",
        "fullName": "Boston Celtics"
      },
      "contestantHome": {
        "id": "TEAM_f29c276b368d40638da2e4d0d152b17c",
        "fullName": "Miami Heat"
      },
      "neutralVenue": false
    },
    "segment": null,
    "proposition": "moneyline",
    "position": "Boston Celtics",
    "marketId": "MKT_bb279e104ac44dafa8f48ea26406e004",
    "sportsdataio": {
      "eventId": "20020905",
      "marketId": "1740268"
    },
    "sportradar": {
      "eventId": "6008945c-34de-489a-b396-a2c8a08d6456",
      "marketId": "sr:market:219"
    },
    "oddsjam": {
      "eventId": "77646-19370-2024-04-29",
      "marketId": "moneyline"
    },
    "segmentId": "SEGM_M",
    "positionId": "TEAM_0bea24fff0ba45a6ba2f88b0217d224e",
    "propDetails": null,
    "betPlaceAvailability": {
      "mg": true,
      "pp": false,
      "hr": false,
      "bo": false,
      "tb": false,
      "ud": false,
      "st": false,
      "fd": true,
      "pe": false,
      "sl": false,
      "bf": false,
      "bs": false,
      "ca": true,
      "dk": true,
      "tf": false,
      "fl": false,
      "sh": false,
      "pb": false,
      "wb": false,
      "fb": false,
      "br": false
    },
    "betPlaceUrls": {
      "mg": "ui.sharpsports.io/place/MRKT_d85823e475d543ed9fdc5ff208c4b1e1/BOOK_pPg9ABaPSj2mL6qoMTKR1A",
      "pp": null,
      "hr": null,
      "bo": null,
      "tb": null,
      "ud": null,
      "st": null,
      "fd": "ui.sharpsports.io/place/MRKT_d85823e475d543ed9fdc5ff208c4b1e1/BOOK_Rf7xRhS7TKQUl94Xkt5w",
      "pe": null,
      "sl": null,
      "bf": null,
      "bs": null,
      "ca": "ui.sharpsports.io/place/MRKT_d85823e475d543ed9fdc5ff208c4b1e1/BOOK_IPBQaQQTCRxplZx7SYOA",
      "dk": "ui.sharpsports.io/place/MRKT_d85823e475d543ed9fdc5ff208c4b1e1/BOOK_nhLZ9l5DRs6w6KcE2n7vnw",
      "tf": null,
      "fl": null,
      "sh": null,
      "pb": null,
      "wb": null,
      "fb": null,
      "br": null
    },
    "prices": {
      "mg": [
        {
          "line": null,
          "odds": -550,
          "main": true
        }
      ],
      "pp": null,
      "hr": null,
      "bo": null,
      "tb": null,
      "ud": null,
      "st": null,
      "fd": [
        {
          "line": null,
          "odds": -520,
          "main": true
        }
      ],
      "pe": null,
      "sl": null,
      "bf": null,
      "bs": null,
      "ca": [
        {
          "line": null,
          "odds": -550,
          "main": true
        }
      ],
      "dk": [
        {
          "line": null,
          "odds": -520,
          "main": true
        }
      ],
      "tf": null,
      "fl": null,
      "sh": null,
      "pb": null,
      "wb": null,
      "fb": null,
      "br": null
    }
  }

Endpoints

marketSelection list

marketSelection detail

id (string)

A unique identifier representing the MarketSelectionID. Each MarketSelectionID will start with the unique character set MRKT_.


event (hash)

Represents the SharpSports event object associated with this MarketSelection.


type (string)

Represent the type of market associated with this MarketSelection - either straight or prop


proposition (string)

In the case of a straight bet, this will always be one of spread, moneyline, total or 3-way. In the case of a prop bet, this can be one of those four options, or a description of unique aspect like gatorade color poured on winning head coach.


segment (string)

This represents the specific half, quarter, or other specific segment of the event that the MarketSelection is based on.


position (string)

The positions taken in this MarketSelection. In the case of a total, the position would be Over or Under, while in the case of a spread the position would be a standardized team name.


positionId (string)

If the position is represented by a standardized object like โ›น๏ธโ€โ™‚๏ธ Player or ๐ŸŽฝ Team then the unique identifier will be stored here.


propDetails (object)

A list of structured information that further defines the prop. This will be null unless bet.type = prop.


{
  "player":"James Harden",
  "playerId":"PLYR_e07cd660f9a548e7aa97ca5f627b8076",
  "team":null,
  "teamId":null,
  "matchupSpecial":null,
  "metricSpecial":"Free Throws",
  "metricSpecialId":"METR_freethrows",
  "future":false
}

player (string)

This field represents the player that the bet concerns in the case of a player prop.

playerId (string)

The SharpSports Player ID associated with the proposition.

team (string)

This field represents the team that the bet concerns in the case of a team prop.

teamId (string)

The SharpSports Team ID associated with the proposition.

matchupSpecial (string)

This field represents the matchup that the bet concerns if it not a matchup specifically sanctioned by the governing body. For instance, bets on Tiger Woods vs. Phil Mickelson when the event is "The Masters".

metricSpecial (string)

This field represents the relevant metric if the bet concerns a stat other than the primary result metric. For instance, this field would be Field Goals if this was a prop on the total field goals in a game.

metricSpecialId (string)

The SharpSports Metric ID associated with the proposition.

future (boolean)

This field will be true if the bet represents a future bet. Future bets are defined as props placed on an event without a defined, sanctioned matchup. For instance, a bet on the SuperBowl winner is a future, until the matchup is defined. At that point it becomes a straight bet, or non-future prop. All bets on the winner of a tournament, or other field based contest are considered futures.


sportsdataio.marketId (string)

The sportsdata.io market ID associated with this MarketSelection.


sportsdataio.eventId (string)

The sportsdata.io event ID associated with this MarketSelection


sportradar.eventId (string)

The sportradar event ID associated with the MarketSelection


sportradar.marketId (string)

The sportradar market ID associated with the marketSelection


oddsjam.eventId (string)

The OddsJam event ID associated with the marketSelection


oddsjam.marketId (string)

The OddsJam market ID associated with the marketSelection.


betPlaceAvailability (json)

A list of book abbreviation boolean pairs indicating if SharpSports BetPlace links are available for this MarketSelection. See the betPlace guide for more details.

"betPlaceAvailability": {
      "br": false,
      "ud": false,
      "mg": true,
      "tb": false,
      "pp": false,
      "tf": false,
      "bf": false,
      "sh": false,
      "sl": false,
      "ca": true,
      "hr": false,
      "bs": false,
      "fd": true,
      "fl": false,
      "fb": false,
      "bo": false,
      "st": false,
      "pe": false,
      "dk": true,
      "pb": true,
      "wb": false
    }

betPlaceUrls (json)

A list of book abbreviation and string pairs that represent a betPlace link.

  "betPlaceUrls": {
      "br": null,
      "ud": null,
      "mg": "ui.sharpsports.io/place/MRKT_e8551f99f81944428394007927a4e7a4/BOOK_pPg9ABaPSj2mL6qoMTKR1A",
      "tb": null,
      "pp": null,
      "tf": null,
      "bf": null,
      "sh": null,
      "sl": null,
      "ca": "ui.sharpsports.io/place/MRKT_e8551f99f81944428394007927a4e7a4/BOOK_IPBQaQQTCRxplZx7SYOA",
      "hr": null,
      "bs": null,
      "fd": "ui.sharpsports.io/place/MRKT_e8551f99f81944428394007927a4e7a4/BOOK_Rf7xRhS7TKQUl94Xkt5w",
      "fl": null,
      "fb": null,
      "bo": null,
      "st": null,
      "pe": null,
      "dk": "ui.sharpsports.io/place/MRKT_e8551f99f81944428394007927a4e7a4/BOOK_nhLZ9l5DRs6w6KcE2n7vnw",
      "pb": "ui.sharpsports.io/place/MRKT_e8551f99f81944428394007927a4e7a4/BOOK_yQb2mAZpRGGCqPSYu4hmmg",
      "wb": null
    }

lineAvailability (json)

"lineAvailability": {
      "br": null,
      "ud": null,
      "mg": [
        -6
      ],
      "tb": null,
      "pp": null,
      "tf": null,
      "bf": null,
      "sh": null,
      "sl": null,
      "ca": [
        -6
      ],
      "hr": null,
      "bs": null,
      "fd": [
        -32.5,
        -31.5,
        -23.5,
        -22.5,
        -21.5,
        -20.5,
        -19.5,
        -18.5,
        -17.5,
        -16.5,
        -15.5,
        -14.5,
        9.5,
        10.5,
        11.5,
        12.5,
        -30.5,
        -29.5,
        -28.5,
        -27.5,
        -26.5,
        -25.5,
        -24.5,
        -13.5,
        -12.5,
        -11.5,
        -10.5,
        -9.5,
        -8.5,
        -7.5,
        -6.5,
        -5.5,
        -4.5,
        -3.5,
        -2.5,
        -1.5,
        1.5,
        2.5,
        3.5,
        4.5,
        5.5,
        6.5,
        7.5,
        8.5,
        13.5,
        14.5,
        15.5,
        16.5,
        17.5,
        18.5,
        19.5,
        -6
      ],
      "fl": null,
      "fb": null,
      "bo": null,
      "st": null,
      "pe": null,
      "dk": [
        -6
      ],
      "pb": [
        -5.5
      ],
      "wb": null
    }