GetMarkets - Saba-sports/OddsDirectAPI GitHub Wiki

This API is to get market information including odds data.

Request

GET  /sports/{version}/GetMarkets?query=$filter=eventId eq 38255274 and bettype eq 127&language=cs
Accept: application/json
Accept-Encoding: br, gzip, deflate
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
Parameter Description
query Specific the query parameters for using odata query format
language Specific the language of the response context

Response

{    
    "markets": Market[]   
} 
Name Format Description
markets array Specifies the information of market

Market

{
	"sportType": int,
	"eventId": int,
	"betType": int,
	"betTypeName": string,
	"marketId": int,
	"maxBet": decimal,
	"isLive": bool,
	"marketStatus": string,
	"gameMap": short?,
	"gameRound": short?,
	"resourceId": string,
	"category": int,
        "showCategory": string,
	"sort": int,
	"combo": int,
	"selections": SelectionInfo[]
}
Name Format Description Queryable Query Example
sportType int Specifies the identifier of the sport. Yes $filter=sporttype eq 1Note: Use the eventid eq syntax to return all the markets of the eventid
eventId int Specifies the identifier of the event. Yes $filter=eventid eq 38255274
betType int Specifies the type of the betting Yes $filter=bettype eq 128
betTypeName string Specifies the name of the betting. No
marketId int Specifies the identifier of the market. Yes $filter=marketId eq 274175476
maxBet decimal Specifies the maximum bet amount for the market. No
isLive bool Specifies whether the game is live. Yes $filter=islive eq true
marketStatus string Specifies the status of the market.running / suspend / closePrice / closed Yes $filter=marketStatus eq 'running'
gameMap short? Specifies the map of game; Only for E-Sportwhen sport type = 43 and bet type in 9001-9142 No
gameRound short? Specifies the round of game; Only for E-Sportwhen sport type = 43 and bet type = 9007, 9011, 9027, 9062, 9068, 9070, 9071, 9072, 9073, 9077, 9089 No
resourceId string X and Y value in Bet Type Format: XX or XXYY. for Example: Bet Type 9007 - Map 1 First to 5 Kills, The value of resourceId is 0105. No
category int Specifies the category of bet choices.0: None 1: FullTime 2: Half 3: Corners /Bookings 4: Intervals 5: Specials 6: Players 7: FastMarket 8: Quarter 9: ExtraTime 10: Penalty 11-40: E-Sports Map 1~30 41: Ending Game Yes $filter=category eq 0
showCategory string Specifies the category of bet choices.0: None 1: FullTime 2: Half 3-1: Corners 3-2: Bookings 4: Intervals 5: Specials 6: Players 7: FastMarket 8: Quarter 9: ExtraTime 10: Penalty 11-40: E-Sports Map 1~30 41: Ending Game Yes $filter=category eq '3-1'
sort int Specifies the ranking betType.when betType= 1,3,7,8,219,220,401,402,475,476,477,478,486,487,701,704,705,3907,3908,3913 has multiple point, and only sportType = 43(E-sports) sort should be 0. Yes $filter=sort eq 1
combo int Specifies the minimum selections of the market when placing parlay.0 : means the market didn’t support parlay 2 : need select at least 2 selections when placing parlay3 : need to select at least 3 selections when placing parlay4,5 and so on Yes $filter=combo ge 2
selections SelectionInfo[] Specifies the information of bet choices. No

SelectionInfo

[
	{
	    "key": string,
	    "keyName": string,
	    "point": decimal?,
	    "point2": decimal?,
	    "oddsPrice": OddsPriceInfo
	}
]
Name Format Description Queryable Query Example
key string Specifies Bet type selections key. No
keyName string Specifies the name of the selections key. No
point decimal? Specifies the point spread. No
point2 decimal? Specifies the point spread 2. Only for bet type=646; point=HDP, point2=OU No
oddsPrice OddsPriceInfo Specifies the information of odds. No
OddsPriceInfo
{
	"parlayPrice": decimal,
	"malayPrice": decimal,
	"hongKongPrice": decimal,
	"decimalPrice": decimal,
	"indoPrice": decimal,
	"americanPrice": decimal
}
Name Format Description Queryable Query Example
parlayPrice decimal Specifies the price of parlay price. No
malayPrice decimal Specifies the price of Malay odds type No
hongKongPrice decimal Specifies the price of Hong Kong odds type. No
decimalPrice decimal Specifies the price of Decimal odds type. No
indoPrice decimal Specifies the price of Indo odds type. No
americanPrice decimal Specifies the price of American odds type. No