GetBetDetails - Saba-sports/OddsDirectAPI_CN GitHub Wiki
用于获取注单详细信息,包含未结算或已结算之注单。最多可查询六个月内之注单。但查询区间(start 与 end)限30日内。
GET
URI: /betting/{version}/GetBetDetails?start=2021-02-01&end=2021-02-05&isSettled=true&Language=en
Content-Type: application/json
X-Forwarded-For: client ip (如果通过代理使用API需要额外带入)
Authorization: Bearer {JWT token}| Parameter | Format | Mandatory | Description |
|---|---|---|---|
| start | Datetime | Yes | 指定开始的日期时间 日期字串格式應符合: "2021-01-01T00:00:00"(可 encode) |
| end | Datetime | Yes | 指定结束的日期时间 日期字串格式應符合: "2021-01-01T00:00:00"(可 encode) |
| isSettled | bool | Yes | 票券是否已结算 |
| language | string | Yes | 指定欲回应的数据语系,请参阅Language Table |
[
{
"transId": long,
"memberId": string,
"operatorId": string,
"leagueId": int?,
"leagueName": string,
"leagueIconUrl": string,
"eventId": int,
"parentId": int,
"homeTeamId": int,
"homeTeamName": string,
"homeIconUrl": string,
"awayTeamId": int,
"awayTeamName": string,
"awayIconUrl": string,
"kickOffTime": DateTime,
"globalShowTime": DateTime,
"sportType": int,
"sportName": string,
"betType": int,
"betTypeName": string,
"parlayTicketNo": long,
"price": decimal,
"stake": decimal,
"transTime": DateTime,
"status": string,
"settlementPrice": decimal,
"currency": int,
"oddsType": int,
"oddsTypeName": string,
"oddsInfo": string,
"key": string,
"keyName": string,
"excluding": string,
"isLucky": bool,
"parlayType": string,
"comboType": string,
"homePoint": decimal,
"awayPoint": decimal,
"point": decimal?,
"eSportGameId": int,
"homeScore": int?,
"awayScore": int?,
"cashoutEnabled": bool,
"alreadyCashout": bool,
"cashoutPrice": decimal,
"parlayInfo": parlayInfo[],
"resettles": ResettlesInfo[],
"resourceId": string,
"settlementTime": DateTime?,
"maxPayOut" : decimal
}
]
| Parameter | Format | Description |
|---|---|---|
| transId | long | 注单号码 |
| memberId | string | 厂商会员标识符 |
| operatorId | string | 厂商账号 |
| leagueId | int? | 联赛ID |
| leagueName | string | 联赛名称 |
| leagueIconUrl | string | 联赛图片URL, 如果图片不存在请使用预设联赛图片URL {domain}/LeagueImg/league_flag.png domain请用leagueIconUrl返回的domain取代 |
| eventId | int | 赛事ID |
| parentId | int | 主赛事ID |
| homeTeamId | int | 主队ID |
| homeTeamName | string | 主队名称 |
| homeIconUrl | string | 联赛图片URL, 如果图片不存在请使用预设联赛图片URL {domain}/TeamImg/team_flag_home.png domain请用homeIconUrl返回的domain取代 |
| awayTeamId | int | 客队ID |
| awayTeamName | string | 客队名称 |
| awayIconUrl | string | 联赛图片URL, 如果图片不存在请使用预设联赛图片URL {domain}/TeamImg/team_flag_away.png domain请用awayIconUrl返回的domain取代 |
| kickOffTime | datetime | 系统开赛时间 (时区GMT+0) |
| globalShowTime | datetime | 赛事开赛时间(时区GMT+0) |
| sportType | int? | 体育项目ID |
| sportName | string | 体育项目名称 |
| betType | int | 投注类型 |
| betTypeName | string | 投注类型名称 |
| parlayTicketNo | long | 串关票券编号 |
| price | decimal | 赔率 |
| stake | decimal | 下注金额 |
| transTime | datetime | 交易时间 |
| status | string | 注单状态 half won / half lose / won / lose / void / running / draw / reject / refund / waiting |
| settlementPrice | decimal | 结算的赢利或亏损金额 |
| currency | int | 币别ID,请参阅Currency Table |
| oddsType | int | 盘口赔率类型 0 : by member setting (default) ; 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
| oddsTypeName | string | 盘口赔率类型名称 |
| oddsInfo | string | 特殊投注类型时才显示信息 当betType = 468 或 469 |
| key | string | 投注类型选项 |
| keyName | string | 投注类型选项名称 |
| excluding | string | 特殊规则 当key = aos且 betType = 413/414/405/644/2707 |
| isLucky | bool | 是否为Lucky串关 |
| parlayType | string | 串关类别 MixParlay: 混合过关 System Parlay: 串关 |
| comboType | string | 串关组合 Doubles/Treble/Trebles/Trixie/Yankee/Canadian/Heinz/SuperHeinz/Goliath/4-Fold~100-Fold Double and Doubles : 如果只产生一张注单就是 Double 否则为 Doubles . 举例 Double (1 bet) / Doubles (3 Bets) Treble and Trebles : 如果只产生一张注单就是 Treble 否则为 Trebles. 举例 Treble (1 bet) / Trebles (4 Bets) Fold and Folds : 如果只产生一张注单就是 Fold 否则为 Folds. 举例 4-Fold (1 bet) / 4-Folds (5 Bets) |
| homePoint | decimal | 主队让球 |
| awayPoint | decimal | 客对让球 |
| point | decmial? | 球头 |
| eSportGameId | int | 电子竞技游戏类型,请参阅E-Sport Group Enumeration |
| homeScore | int? | 下注时主队得分 |
| awayScore | int? | 下注时客队得分 |
| cashoutEnabled | bool | 是否可以实时兑现 |
| alreadyCashout | bool | 是否已经实时兑现 |
| cashoutPrice | decimal | 实时兑现的金额, 当 alreadyCashout 是 true. |
| parlayInfo | parlayInfo | 串关信息列表 |
| resettles | ResettlesInfo | 重新结算信息列表(若有重新结算才会出现信息) |
| resourceId | string | 投注类型中的 X 和 Y 值,格式为 XX 或 XXYY。 例如:投注类型 9007 Map 1 Firstto 5 Kills。收到的 resourceId 值为 0105。 |
| settlementTime | datetime? | 注单结算日期与时间 |
| maxPayOut | decimal | 最高可赢得金额 |
[
{
"parlayId": long,
"leagueId": int,
"leagueName": string,
"leagueIconUrl" string,
"eventId": int,
"homeTeamId": int,
"homeTeamName": string,
"homeIconUrl" string,
"awayTeamId": int,
"awayTeamName": string,
"awayIconUrl" string,
"kickOffTime": DateTime,
"globalShowTime": DateTime,
"price": decimal,
"betType": int,
"betTypeName": string,
"key": string,
"keyName": string,
"sportType": int,
"sportName": string,
"homePoint": decimal,
"awayPoint": decimal,
"point": decimal?,
"status": string,
"homeScore": int?,
"awayScore": int?,
"resourceId": string
}
]
| Parameter | Format | Description |
|---|---|---|
| parlayId | long | Parlay注单号码 |
| leagueId | int | 联赛ID |
| leagueName | string | 联赛名称 |
| leagueIconUrl | string | 联赛图片URL, 如果图片不存在请使用预设联赛图片URL {domain}/LeagueImg/league_flag.png domain请用leagueIconUrl返回的domain取代 |
| eventId | int | 赛事ID |
| homeTeamId | int | 主队ID |
| homeTeamName | string | 主队名称 |
| homeIconUrl | string | 联赛图片URL, 如果图片不存在请使用预设联赛图片URL {domain}/TeamImg/team_flag_home.png domain请用homeIconUrl返回的domain取代 |
| awayTeamId | int | 客队ID |
| awayTeamName | string | 客队名称 |
| awayIconUrl | string | 联赛图片URL, 如果图片不存在请使用预设联赛图片URL {domain}/TeamImg/team_flag_away.png domain请用awayIconUrl返回的domain取代 |
| kickOffTime | datetime | 赛事开赛时间 (时区GMT+0) |
| globalShowTime | datetime | 赛事开赛时间 (时区GMT+0) |
| price | decimal | 赔率 |
| betType | int | 投注类型 |
| betTypeName | string | 投注类型名称 |
| key | string | 投注类型选项 |
| keyName | string | 投注类型选项名称 |
| sportType | int | 体育项目ID |
| sportName | string | 体育项目名称 |
| homePoint | decimal | 主队让球 |
| awayPoint | decimal | 客队让球 |
| point | decimal? | 球头 |
| status | string | 注单状态 half won / half lose / won / lose / void / running / draw / reject / refund / waiting |
| homeScore | int? | 下注时主队得分 |
| awayScore | int? | 下注时客队得分 |
| resourceId | string | 投注类型中的 X 和 Y 值,格式为 XX 或 XXYY。 例如:投注类型 9007 Map 1 Firstto 5 Kills。收到的 resourceId 值为 0105。 |
[
{
"resettleDate": DateTime,
"balanceChange": bool,
"status": string,
"reSettlePrice": decimal
}
]
| Parameter | Format | Description |
|---|---|---|
| resettleDate | datetime | 重新结算时间 |
| balanceChange | bool | 余额是否更动 |
| status | string | 注单状态 half won / half lose / won / lose / void / running / draw / reject / refund / waiting |
| reSettlePrice | decimal | 前次结算输或赢的金额 |
| Ticket Status | 说明描述 |
|---|---|
| waiting(等待中) | 交易員可能因為賠率的轉換等因素,還未接受這張注單。 |
| running(进行中) | 此注單還沒有結算。(注單還沒有結算的狀態有可能是這場比賽還沒有結算之類的情形.) |
| void(作废) | 在注單為 running 的狀態下,玩家下注注金返回。原因可能為我們交易員對此場賽事有些疑慮。可與我們聯繫詢問發生什麼狀況。 |
| refund(退款) | 在注單為 running 的狀態下,玩家下注注金返回。原因有可能是賽事取消或發生什麼意外。 |
| reject(已取消) | 在注單為 waiting 的狀態下,玩家下注注金返回。可能狀況很多。 |
| lose(输) | 此注單已結算且玩家輸了此注單。 |
| won(赢) | 此注單已結算且玩家贏了此注單。 |
| draw(和局) | 此注單已結算且此注單為和局。 |
| half won(半赢) | 此注單已結算且玩家贏了下注額一半。 |
| half lose(半输) | 此注單已結算且玩家輸了下注額一半。 |