取得串关注单的相关信息
- 同场赛事不支援串关,亦即从同个赛事取得market_id不支持。
- 最低串关数量可由GetMarkets的combo取得
Request
GET /betting/{version}/GetParlayTickets
Content-Type: application/json
X-Forwarded-For: client ip (如果通过代理使用API需要额外带入)
Authorization: Bearer {JWT token}
or
POST /betting/{version}/GetParlayTickets
Content-Type: application/json
X-Forwarded-For: client ip (如果通过代理使用API需要额外带入)
Authorization: Bearer {JWT token}
使用json方式将参数带入请求
{
"language": string,
"parlayTickets": [
{
"sportType": int,
"marketId": int,
"point": decimal,
"key": string,
"betType": int
},
{
"sportType": int,
"marketId": int,
"point": decimal,
"key": string,
"betType": int
},
"IsBetBuilderPlus": bool
]
}
| Parameter |
Format |
Mandatory |
Description |
| language |
string |
-- |
指定欲回应的数据语系,请参阅Language Table |
| parlayTickets |
ParlayTicketInfo Array |
Yes |
串关注单相关信息 |
| IsBetBuilderPlus |
bool |
No |
是否为灵活串关 |
ParlayTicketInfo
| Parameter |
Format |
Length |
Mandatory |
Description |
| sportType |
int |
|
Yes |
体育项目 ID |
| marketId |
int |
|
Yes |
盘口ID |
| point |
decimal |
8.2 |
|
球头, 预设为0 |
| key |
string |
10 |
Yes |
投注类型选项 |
| betType |
int |
|
No |
如果有带会先检查key是否正确 |
Response
{
"combos": [
{
"comboType": string,
"comboTypeName": string,
"price": double,
"betCount": int,
"minBet": decimal,
"maxBet": decimal,
"abnormalMarketList": ParlayAbnormalMarket[],
"payoutRate": decimal
},
{
"comboType": string,
"price": double,
"betCount": int,
"minBet": decimal,
"maxBet": decimal,
"abnormalMarketList": ParlayAbnormalMarket[],
"payoutRate": decimal
}
],
"priceInfo": [
{
"stateCode": int,
"stateMessage": string,
"currentPrice": decimal,
"marketId": int,
"key": string,
"sportType": int,
"point": double?,
"betType": int,
"oddsType": int,
"status": string,
"liveHomeScore": int,
"liveAwayScore": int
},
{
"stateCode": int,
"stateMessage": string,
"currentPrice": decimal,
"marketId": int,
"key": string,
"sportType": int,
"point": double?,
"betType": int,
"oddsType": int,
"status": string,
"liveHomeScore": int,
"liveAwayScore": int
}
],
"betBuilderPlusInfos": [
{
"marketIds": int[],
"price": decimal,
"eventId": int
}
],
"greyOutRules": {
"{eventId}": [
{
"eventId": int,
"betType": int,
"key": string,
"pointRangeType": string,
"pointRangeValue": decimal?,
"ruleType": string
}
]
}
}
| Parameter |
Format |
Description |
| combos |
ComboInfo |
串关赛事相关信息 |
| priceInfo |
PriceInfo |
盘口赔率相关信息 |
ComboInfo
| Parameter |
Format |
Description |
| comboType |
string |
串关组合,请参考Parlay Combo Enumeration |
| comboTypeName |
string |
串关组合名称含注单张数 |
| price |
double |
赔率 |
| betCount |
int |
注单数 |
| maxBet |
decimal |
最大下注限额 |
| minBet |
decimal |
最小下注限额 |
| abnormalMarketList |
ParlayAbnormalMarket[] |
赔率小于串关最小限制赔率列表,僅用於Exception:Parlay odds lower than min odds(B039),请参阅Exception |
| PayoutRate |
decimal |
可賠付比率 |
PriceInfo
| Parameter |
Format |
Description |
| stateCode |
int |
该串关选择的状态代码0 : 可下注状态6 : 球头已不存在12 : 赔率调整中18 : [E-Sport 专用] 赛事状态改变 ( In-Play 和 Starting Soon)22 : 赛事比分改变23 : 赛事球头改变 |
| stateMessage |
string |
该串关选择的状态信息 |
| currentPrice |
decimal |
投注当下实时赔率 |
| marketId |
int |
盘口ID |
| key |
string |
投注类型选项 |
| sportType |
int |
体育项目ID |
| point |
double? |
球头 |
| betType |
int |
投注类型 |
| oddsType |
int |
盘口赔率类型1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
| status |
string |
盘口状态running / suspend / closePrice / closed |
| liveHomeScore |
int |
主队得分 |
| liveAwayScore |
int |
客对得分 |
ParlayAbnormalMarket
| Parameter |
Format |
Description |
| marketId |
int |
盘口ID |
| minOdds |
decimal |
赔率最小限制 |
BetBuilderPlusInfo
| Parameter |
Format |
Description |
| marketIds |
int[] |
指定此 灵活串关 组中包含的市场(Market)ID |
| price |
decimal |
指定 灵活串关 组计算后的价格(赔率) |
| eventId |
int |
指定赛事的标识符 |
GreyOutRules
| Parameter |
Format |
Description |
| eventId |
GreyOutRule Array |
指定该赛事(Event)下的灰显规则数组 |
GreyOutRule
| Parameter |
Format |
Description |
| eventId |
int |
指定赛事的标识符 |
| betType |
int |
指定投注类型 |
| key |
int |
指定选择项(Selection)的键值。 |
| pointRangeType |
string |
指定该规则的分数范围类型,例如:大于(greater than)、大于或等于(greater than or equal) |
| pointRangeValue |
decimal? |
指定该规则的分数范围数值;当 pointRangeType 为 None 时为 null |
| ruleType |
string |
指定灰显规则的类型/说明 |