GetSingleTicket - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get the latest market information for a single bet.
GET /betting/{version}/GetSingleTicket?SportType=1&MarketId=314297898&key=h
Content-Type: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}| Parameter | Format | Length | Mandatory | Description |
|---|---|---|---|---|
| sportType | int | Yes | Specifies the identifier of the sport. | |
| marketId | int | Yes | Specifies the identifier of the market. | |
| key | string | 10 | Yes | Specifies the key of the selection. |
| oddsType | int | -- | Specifies the type of the odds. 0 : by member setting (default) ; 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
|
| betType | int | Yes | Specifies the identifier of the betType |
{
"sportType": int,
"marketId": int,
"isDecimalType": bool,
"point": decimal?,
"key": string,
"betType": int,
"oddsType": int,
"price": double,
"status": string,
"maxBet": decimal,
"minBet": decimal,
"liveHomeScore": int,
"liveAwayScore": int,
"payoutRate": decimal,
"aosExcluding": string,
"isPackagedMatches": bool,
"eventId": int?
}
| Parameter | Format | Description |
|---|---|---|
| SportType | int | Specifies the identifier of the sport. |
| MarketId | int | Specifies the identifier of the market. |
| IsDecimalType | bool | Specifies whether the market only supports decimal odds. |
| Point | decimal? | Specifies the point spread. |
| Key | string | Specifies the key of the selection. |
| 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 |
| Price | double | Specifies the price. |
| Status | string | Specifies the status of the market. running / suspend / closePrice / closed |
| MaxBet | decimal | Specifies the maximum bet amount for the market. |
| MinBet | decimal | Specifies the minimum bet amount for the market. |
| LiveHomeScore | int | Specifies the current score of the home team. |
| LiveAwayScore | int | Specifies the current score of the away team. |
| PayoutRate | decimal | Specifies the Maximum payable rate. |
| aosExcluding | string | Specifies bet types 392, 399, 405, 413, 414, 416, 493, 494, 495, and 644 when using the "AOS" key—display the score outcomes that are not included in the "AOS" category. |
| isPackagedMatches | bool | Specifies the event is a packaged match |
| eventId | int? | Specifies the identifier of the event. |