GetParlayTickets - Saba-sports/OddsDirectAPI_CN GitHub Wiki
取得串关注单的相关信息
- 同场赛事不支援串关,亦即从同个赛事取得market_id不支持。
- 最低串关数量可由GetMarkets的combo取得
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}{
"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 | 是否为灵活串关 |
| Parameter | Format | Length | Mandatory | Description |
|---|---|---|---|---|
| sportType | int | Yes | 体育项目 ID | |
| marketId | int | Yes | 盘口ID | |
| point | decimal | 8.2 | 球头, 预设为0 | |
| key | string | 10 | Yes | 投注类型选项 |
| betType | int | Yes | 玩法类型 |
{
"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,
"aosExcluding": string,
"isPackagedMatches": bool,
"eventId": 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,
"aosExcluding" string,
"isPackagedMatches": bool,
"eventId": int?
}
],
"betBuilderPlusInfos": [
{
"marketIds": int[],
"price": decimal,
"eventId": int
}
],
"greyOutRules": {},
"compatibleSelections": {
"{eventId}": [
{
"eventId": int,
"sportType": int,
"betType": int,
"key": string,
"point": decimal,
"resourceId": string,
"homeScore": int,
"awayScore": int
}
]
}
}
| Parameter | Format | Description |
|---|---|---|
| combos | ComboInfo | 串关赛事相关信息 |
| priceInfo | PriceInfo | 盘口赔率相关信息 |
| 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 | 可賠付比率 |
| 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 | 客对得分 |
| aosExcluding | string | bettype 392, 399, 405, 413, 414, 416, 493, 494, 495, 644 且使用key aos相关的玩法时显示aos不包含的比分玩法 |
| isPackagedMatches | bool | 是否為組合賽事 |
| eventId | int? | 賽事ID |
| Parameter | Format | Description |
|---|---|---|
| marketId | int | 盘口ID |
| minOdds | decimal | 赔率最小限制 |
| Parameter | Format | Description |
|---|---|---|
| marketIds | int[] | 指定此 灵活串关 组中包含的市场(Market)ID |
| price | decimal | 指定 灵活串关 组计算后的价格(赔率) |
| eventId | int | 指定赛事的标识符 |
| Parameter | Format | Description |
|---|---|---|
| eventId | GreyOutRule Array | 指定该赛事(Event)下的灰显规则数组(已棄用) |
| Parameter | Format | Description |
|---|---|---|
| eventId | CompatibleMarket Array | 指定该赛事下可继续追加的相容选项数组。 |
| Parameter | Format | Description |
|---|---|---|
| eventId | int | 允许用户下注的赛事 ID |
| betType | int | 允许用户下注的投注类型 |
| sportType | int | 允许用户下注的体育项目 ID |
| key | string | 允许用户下注的投注选项 |
| point | decimal | 球头 |
| resourceId | string | 资源 ID,识别是哪个 quarter(节次)的盘口。 • 空字串 "" 或 "0":全场市场(无 quarter) • "01" "02" "03" "04":第一节、第二节、第三节、第四节 |
| homeScore | int | 主队各节比分 |
| awayScore | int | 客队各节比分 |