GetOutrights - Saba-sports/OddsDirectAPI GitHub Wiki

This API is to get outright information.

Request

GET  /sports/{version}/GetOutrights?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
from Specific the start date of the data. It can be inputted separately.The date time string format should be like: "2021-01-01T00:00:00", encodable
until Specific the end date of the data. It can be inputted separately.The date time string format should be like: "2021-01-01T00:00:00", encodable
language Specific the language of the response context

Response

{    
    "outrights": Outright[]   
} 
Name Format Description
outrights array Specifies the information of outright

Outright

{
	"sportType": int,
	"sportName": string,
	"leagueId": int,
	"leagueName": string,
	"eventCode": string,
	"lDisplayMode": int,
	"eventDate": DateTime,
	"outrightStatus": string,
	"isTest": bool,
	"leagueGroup": string,
	"teams": Team[]
}
Name Format Description Queryable Query Example
sportType int Specifies the identifier of the sport. Yes $filter=sporttype eq 1
sportName string Specifies the name of the sport. Yes $filter=sportname eq 'Soccer'
leagueId int Specifies the identifier of the league. Yes $filter=leagueid eq 93816
leagueName string Specifies the name of the league. Yes $filter=leaguename eq '*UEFA EURO 2020 - WINNER' or $filter=contains(leaguename,'UEFA')
eventCode string Specifies the order of the event. No
lDisplayMode int Specifies the display mode of league.0:All 1:Olympic 2:World Cup 3:Euro 4:Winter Olympic 5:COPA America No
eventDate DateTime Specifies the date and time of the beginning of the event. No
outrightStatus string Specifies the status of the outright.running/closed No
isTest bool Specifies whether the event is test. No
leagueGroup string Specifies the group of the league. (EN) No
teams Teams Specifies the information of outright teams. No

Teams

{
	"orid": int,
	"teamId": int,
	"teamName": string,
	"price": decimal,
	"maxBet": int,
	"oddsStatus": string,
	"isUpdate": bool
}
Name Format Description Queryable Query Example
orid int Specifies the identifier of the outright. No
teamId int Specifies the identifier of the team. No
teamName string Specifies the name of the team. No
price decimal Specifies the odds price of this team. (DEC) No
maxBet int Specifies the maximum bet amount for this team. No
oddsStatus string Specifies the status of the odds.running/suspend/closePrice/closed/Completed No
isUpdate bool Specifies whether the odds be updated. No