beta 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
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}{
"language": string,
"parlayTickets": [
{
"sportType": int,
"marketId": int,
"point": decimal?,
"key": string
},
{
"sportType": int,
"marketId": int,
"point": decimal?,
"key": string
}
]
}
| Parameter | Format | Mandatory | Description |
|---|---|---|---|
| language | string | -- | Specifies the language of the response context. |
| parlayTickets | ParlayTicketInfo Array | Yes | Specifies the information of parlay tickets. |
| 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. |
|
| key | string | Yes | 10 | Specifies the key of the selection. |
{
"combos": [
{
"comboType": string,
"comboTypeName": string,
"price": double,
"betCount": int,
"minBet": decimal,
"maxBet": decimal
},
{
"comboType": string,
"price": double,
"betCount": int,
"minBet": decimal,
"maxBet": 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
}
]
}
| Parameter | Format | Description |
|---|---|---|
| combos | ComboInfo | Specifies an array of combo information. |
| priceInfo | PriceInfo | Specifies an array of price information. |
| 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. |
| 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. |