PlaceParlayBet - Saba-sports/OddsDirectAPI_CN GitHub Wiki

此API用于下注串关的注单

Request

POST  /betting/{version}/PlaceParlayBet
Content-Type: application/json
X-Forwarded-For: client ip (如果通过代理使用API需要额外带入)
Authorization: Bearer {JWT token}

使用json方式将参数带入请求

{
    "betInfo": 
    {
        "vendorTransId": string,
        "priceOption": int,
        "tickets": [
        {
            "sporttype": int,
            "marketid": int,
            "point": decimal,
            "key": string,
            "price": decimal
        }, 
        {
            "sporttype": int,
            "marketid": int,
            "point": decimal,
            "key": string,
            "price": decimal
        }],
        "combos": [
        {
            "combotype": string,
            "stake": int
        }],
        "language": string
    }
}
Parameter Format Mandatory Description
betInfo BetInfo Yes 下注相关信息

BetInfo

Parameter Format Length Mandatory Description
vendorTransId string 50 Yes 厂商注单号码当呼叫下注时碰到连线逾时,请使用此ID来呼叫 /CheckPlaceBet 确认注单状态,建议使用不重复的值
priceOption byte byte -- 下注选项0:不接受盘口变更 (预设) ; 1:接受任何赔率
tickets Tickets Array Yes 注单相关信息
combos Combos Array Yes 串关赛事相关信息
language string -- 指定欲回应的数据语系,请参阅Language Table
Tickets
Parameter Format Length Mandatory Description
sportType int Yes 体育项目ID
marketId int Yes 盘口ID
point decimal 8.2 Yes 球头
key string 10 Yes 投注类型选项
price decimal 8.2 Yes 赔率
Combos
Parameter Format Length Mandatory Description
comboType string Yes 串关组合,请参考Parlay Combo Enumeration
stake int Yes 下注金额

Response

{
    "transId": long,
    "sysTransId": long,
    "luckyTransId": long,
    "totalStake": int,
    "maxBet": decimal,
    "minBet": decimal,
    "betStatus": short,
    "parlayBetAcceptSec": int,
    "parlayTicketStatus": string,
    "singleTickets": SingleTicketInfo[],
    "currentCombos": CurrentComboInfo[],
    "priceInfos": PriceInfo[],
}
Parameter Format Description
transId long 沙巴注单号码
sysTransId long System parlay transaction ID
luckyTransId long Lucky parlay transaction ID
totalStake int 总下注额
maxBet decimal 最大投注限额
minBet decimal 最小投注限额
betStatus short 注单状态0 :下注成功 ;1 :下注失败
parlayBetAcceptSec int 串关下注等待秒数
parlayTicketStatus string 串关下注状态running / waiting
singleTickets SingleTicketInfo Array [Lucky Parlay专用] 单注注单信息列表
currentCombos CurrentComboInfo Array 串关信息列表
priceInfos PriceInfo Array 串关盘口与赔率信息列表

SingleTicketInfo

[
    {
        "transId": long,
        "price": double,
        "stake": int,
        "maxBet": decimal,
        "minBet": decimal,
        "ticketStatus": string,
    }
]
Parameter Format Description
TransId long 单注注单号
Price double 赔率
Stake int 下注金额
MaxBet decimal 最大投注限额
MinBet decimal 最小投注限额
TicketStatus string 注单状态running/reject/waiting

CurrentComboInfo

[
    {
        "comboPrice": double,
        "comboType": string,
        "stake": int,
        "betCount": int,
        "maxBet": decimal,
        "abnormalMarketList": ParlayAbnormalMarket[]
    }
]
Parameter Format Description
comboPrice double 此串关组合之赔率
comboType string 串关组合,请参考Parlay Combo Enumeration
stake int 此串关组合之投注金额
betCount int 此串关组合总注单数
maxBet decimal 最大投注限额
abnormalMarketList ParlayAbnormalMarket[] 赔率小于串关最小限制赔率列表,僅用於Exception:Parlay odds lower than min odds(B039),请参阅Exception

PriceInfo

[
    {
        "stateCode": int,
        "stateMessage": string,
        "currentPrice": decimal,
        "marketId": int,
        "key": string,
        "sportType": int,
        "point": decimal,
        "betType": int,
        "oddsType": int,
        "status": string,
        "liveHomeScore": int,
        "liveAwayScore": int
    }
]
Parameter Format Description
stateCode int 该串关选择的状态代码0:可下注状态6: 球头已不存在8: 赔率已改变12:赔率调整中17:赔率错误18:[E-Sport 专用] 赛事状态改变 ( In-PlayStarting Soon)22:赛事比分改变23:赛事球头改变
stateMessage string 该串关选择的状态消息
currentPrice decimal 投注当下实时赔率
marketId int 盘口ID
key string 投注类型选项
sportType int 体育项目ID
point decimal 球头
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 赔率最小限制