GetParlayTickets - Saba-sports/OddsDirectAPI GitHub Wiki

This API is to get the latest market information for parlay bet.

  • Do not support market_id from the same event.
  • Support minimum selections of the markets when placing parlay which comes from GetMarkets.Combo

Request

GET /betting/{version}/GetParlayTickets
Content-Type: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}

or

POST /betting/{version}/GetParlayTickets
Content-Type: application/json
Authorization: Bearer {JWT token}

use json request

{
  "language": string,
  "parlayTickets": [
    {
      "sportType": int,
      "marketId": int,
      "point": decimal?,
      "key": string,
      "betType": int
    },
    {
      "sportType": int,
      "marketId": int,
      "point": decimal?,
      "key": string,
      "betType": int
    },
   "IsBetBuilderPlus": bool
  ]
}
Parameter Format Mandatory Description
language string -- Specifies the language of the response context.
parlayTickets ParlayTicketInfo Array Yes Specifies the information of parlay tickets.
IsBetBuilderPlus bool No Specifies whether BetBuilderPlus.

ParlayTicketInfo

Parameter Format Length Mandatory Description
sportType int Yes Specifies the identifier of the sport.
marketId int Yes Specifies the identifier of the market.
point decimal? 8.2 Specifies the point spread.
default is 0.
point2 decimal? 8.2 Specifies the point spread.
default is 0.
key string Yes 10 Specifies the key of the selection.
betType int No Check if the key is valid, if provided.

Response

{
    "combos": [
        {
            "comboType": string,
            "comboTypeName": string,
            "price": double,
            "betCount": int,
            "minBet": decimal,
            "maxBet": decimal,
            "abnormalMarketList": ParlayAbnormalMarket[],
            "payoutRate": decimal
        },
        {
            "comboType": string,
            "price": double,
            "betCount": int,
            "minBet": decimal,
            "maxBet": decimal,
            "abnormalMarketList": ParlayAbnormalMarket[],
            "payoutRate": decimal
        }
    ],
    "priceInfo": [
        {
            "stateCode": int,
            "stateMessage": string,
            "currentPrice": decimal,
            "marketId": int,
            "key": string,
            "sportType": int,
            "point": double?,
            "betType": int,
            "oddsType": int,
            "status": string,
            "liveHomeScore": int,
            "liveAwayScore": int
        },
        {
            "stateCode": int,
            "stateMessage": string,
            "currentPrice": decimal,
            "marketId": int,
            "key": string,
            "sportType": int,
            "point": double?,
            "betType": int,
            "oddsType": int,
            "status": string,
            "liveHomeScore": int,
            "liveAwayScore": int
        }
    ],
    "betBuilderPlusInfos": [
        {
            "marketIds": int[],
            "price": decimal,
            "eventId": int
        }
    ],
    "greyOutRules": {
        "{eventId}": [
            {
                "eventId": int,
                "betType": int,
                "key": string,
                "pointRangeType": string,
                "pointRangeValue": decimal?,
                "ruleType": string
            }
        ]
    }
}
Parameter Format Description
combos ComboInfo Specifies an array of combo information.
priceInfo PriceInfo Specifies an array of price information.

ComboInfo

Parameter Format Description
comboType string Specifies the information of parlay combo category.please refer to Parlay Combo Enumeration below.
comboTypeName string Specifies the name of parlay combo category.
price double Specifies the price.
betCount int Specifies the betting stake count.
maxBet decimal Specifies the maximum bet amount for the market.
minBet decimal Specifies the minimum bet amount for the market.
abnormalMarketList ParlayAbnormalMarket[] Specifies For Exception:Parlay odds lower than min odds(B039), Please refer to Exception.
PayoutRate decimal Specifies the Maximum payable rate.

PriceInfo

Parameter Format Description
stateCode int Specifies the stake code of parlay selection.
0:OK
6:Point is expired
12:Odds suspend
18:In play changed
22:Score change
23:Point change
stateMessage string Specifies the stake code of parlay selection.
currentPrice decimal Specifies the current price of betting.
marketId int Specifies the identifier of the market.
key string Specifies the key of the selection.
sportType int Specifies the identifier of the sport.
point double? Specifies the point spread.
betType int Specifies the type of the betting.
oddsType int Specifies the type of the odds.
>1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds
status string Specifies the status of the market.
>running / suspend / closePrice / closed
liveHomeScore int Specifies the current score of home team.
liveAwayScore int Specifies the current score of away team.

ParlayAbnormalMarket

Parameter Format Description
marketId int Specifies the identifier of the market.
minOdds decimal Specifies Min odds Setting By Market.

BetBuilderPlusInfo

Parameter Format Description
marketIds int[] Specifies the market ids included in this bet builder plus group.
price decimal Specifies the calculated price of the bet builder plus group.
eventId int Specifies the identifier of the event.

GreyOutRules

Parameter Format Description
eventId GreyOutRule Array Specifies an array of grey out rules under the event.

GreyOutRule

Parameter Format Description
eventId int Specifies the identifier of the event.
betType int Specifies the type of the betting.
key int Specifies the key of the selection.
pointRangeType string Specifies the point range type for the rule e.g. greater than, greater than or equal
pointRangeValue decimal? Specifies the point range value for the rule. null when pointRangeType is None.
ruleType string Specifies the rule type/description for grey out.
⚠️ **GitHub.com Fallback** ⚠️