beta 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,
	"sort": int,
	"combo": int,
	"selections": SelectionInfo[]
}
Name Format Description Queryable Query Example
sportType int Specifies the identifier of the sport. Yes $filter=sporttype eq 1
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=marketed 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-9100 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 No
resourceId string Specifies the identifier of resource. 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-19: E-Sports Map 1-9 Yes $filter=category eq 0
sort int Specifies the ranking bet type.when bet type=1,3,7,8 and have multiple point. 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 parlay 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