用于获取注单详细信息,包含未结算或已结算之注单。最多可查询一个月内之注单。
Request
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 |
指定开始的日期时间 |
end |
Datetime |
Yes |
指定结束的日期时间 |
isSettled |
bool |
Yes |
票券是否已结算 |
language |
string |
Yes |
指定欲回应的数据语系,请参阅Language Table |
Response
[
{
"transId": long,
"memberId": string,
"operatorId": string,
"leagueId": int?,
"leagueName": string,
"eventId": int,
"homeTeamId": int,
"homeTeamName": string,
"awayTeamId": int,
"awayTeamName": string,
"kickOffTime": 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?,
"cashoutEnable": bool,
"cashouts": CashoutDataInfo[],
"parlayData": ParlayDataInfo[],
"resettles": ResettlesInfo[]
}
]
Parameter |
Format |
Description |
transId |
long |
注单号码 |
memberId |
string |
厂商会员标识符 |
operatorId |
string |
厂商账号 |
leagueId |
int? |
联赛ID |
leagueName |
string |
联赛名称 |
eventId |
int |
赛事ID |
homeTeamId |
int |
主队ID |
homeTeamName |
string |
主队名称 |
awayTeamId |
int |
客队ID |
awayTeamName |
string |
客队名称 |
kickOffTime |
datetime |
赛事开赛时间 |
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 |
homePoint |
decimal |
主队让球 |
awayPoint |
decimal |
客对让球 |
point |
decmial? |
球头 |
eSportGameId |
int |
电子竞技游戏类型,请参阅E-Sport Group Enumeration |
homeScore |
int? |
下注时主队得分 |
awayScore |
int? |
下注时客队得分 |
cashoutEnable |
bool |
是否可以实时兑现 |
cashouts |
CashoutDataInfo |
实时兑现票的信息列表 |
parlayData |
ParlayDataInfo |
串关信息列表 |
resettles |
ResettlesInfo |
重新结算信息列表(若有重新结算才会出现信息) |
CashoutDataInfo
[
{
"cashoutId": long,
"cashoutTime": DateTime,
"cashoutStake":decimal
"cashoutAmount":decimal
"cashoutStatus":string
"cashoutSettlementPrice":decimal
}
]
Parameter |
Format |
Description |
cashoutId |
long |
实时兑现票的ID |
cashoutTime |
DateTime |
实时兑现的交易时间 |
cashoutStake |
decimal |
实时兑现的投注额 |
cashoutAmount |
decimal |
实时兑现的金额 |
cashoutStatus |
string |
实时兑现的注单状态 |
cashoutSettlementPrice |
decimal |
实时兑现结算的赢利或亏损金额 |
ParlayDataInfo
[
{
"parlayId": long,
"leagueId": int,
"leagueName": string,
"eventId": int,
"homeTeamId": int,
"homeTeamName": string,
"awayTeamId": int,
"awayTeamName": string,
"kickOffTime": 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?
}
]
Parameter |
Format |
Description |
parlayId |
long |
Parlay注单号码 |
leagueId |
int |
联赛ID |
leagueName |
string |
联赛名称 |
eventId |
int |
赛事ID |
homeTeamId |
int |
主队ID |
homeTeamName |
string |
主队名称 |
awayTeamId |
int |
客队ID |
awayTeamName |
string |
客队名称 |
kickOffTime |
datetime |
赛事开赛时间 |
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? |
下注时客队得分 |
ResettlesInfo
[
{
"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 Description
Ticket Status |
说明描述 |
waiting(等待中) |
交易員可能因為賠率的轉換等因素,還未接受這張注單。 |
running(进行中) |
此注單還沒有結算。(注單還沒有結算的狀態有可能是這場比賽還沒有結算之類的情形.) |
void(作废) |
在注單為 running 的狀態下,玩家下注注金返回。原因可能為我們交易員對此場賽事有些疑慮。可與我們聯繫詢問發生什麼狀況。 |
refund(退款) |
在注單為 running 的狀態下,玩家下注注金返回。原因有可能是賽事取消或發生什麼意外。 |
reject(已取消) |
在注單為 waiting 的狀態下,玩家下注注金返回。可能狀況很多。 |
lose(输) |
此注單已結算且玩家輸了此注單。 |
won(赢) |
此注單已結算且玩家贏了此注單。 |
draw(和局) |
此注單已結算且此注單為和局。 |
half won(半赢) |
此注單已結算且玩家贏了下注額一半。 |
half lose(半输) |
此注單已結算且玩家輸了下注額一半。 |