DoBatchPlaceBets - Saba-sports/OddsDirectAPI_CN GitHub Wiki
此API提供最多10张单注注单来做批次下注
Request
POST /betting/{version}/DoBatchPlaceBets
Content-Type: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
use json request
{
"oddsOption": int,
"oddsType" : int,
"language": string,
"batchTickets": [
{
"vendorTransId": string,
"sportType": int,
"marketId": int,
"point": decimal,
"point2": decimal?,
"price": decimal,
"key": string,
"stake": int
},
{
"vendorTransId": string,
"sportType": int,
"marketId": int,
"point": decimal,
"point2": decimal?,
"price": decimal,
"key": string,
"stake": int
}
]
}
Parameter |
Format |
Mandatory |
Description |
batchTickets |
batchTicketsInfo Array |
Yes |
批次下注的信息 |
oddsOption |
int |
|
下注选项0:不接受盘口变更(预设) ; 1:只接受更好的赔率; 2:接受任何赔率变更 |
oddsType |
int |
|
盘口赔率类型.0 : by member setting (default) ; 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
language |
string |
|
指定欲回应的数据语系,请参阅Language Table |
BatchTickets
Parameter |
Format |
Length |
Mandatory |
Description |
vendorTransId |
string |
50 |
Yes |
厂商注单号码当呼叫下注时碰到连线逾时,请使用此ID来呼叫 /CheckPlaceBet 确认注单状态,建议使用不重复的值 |
sportType |
int |
|
Yes |
体育项目 ID |
marketId |
int |
|
Yes |
盘口ID |
price |
decimal |
8.2 |
Yes |
赔率 |
point |
decimal |
8.2 |
Yes |
球头 |
point2 |
decimal? |
50.2 |
No |
球头2 |
key |
string |
10 |
Yes |
投注类型选项 |
stake |
int |
|
Yes |
下注金额 |
Response
{
"placeBetResults": [
{
"betResult": object,
"error": {
"statusCode": int,
"errorCode": string,
"message": string,
"vendorTransId": string,
"details": object,
"traceId": string
}
},
{
"betResult": {
"betPrice": decimal,
"transId": long,
"vendorTransId": string,
"currentPrice": decimal,
"stake": decimal,
"betStatus": short,
"betAcceptSecond": int,
"ticketStatus": string,
"maxBet": decimal,
"minBet": decimal
},
"error": object
}
]
}
Parameter |
Format |
Mandatory |
Description |
placeBetResults |
placeBetResults Array |
Yes |
批次下注的結果 |
betResult
Parameter |
Format |
Description |
betPrice |
decimal |
下注赔率 |
transId |
long |
沙巴注单号码 |
vendorTransId |
string |
厂商注单号码 |
currentPrice |
decimal |
盘口当下的赔率 |
stake |
decimal |
下注额度 |
betStatus |
short |
注单状态0 :下注成功 ;1 :下注失败 |
betAcceptSecond |
int |
等待秒数 |
ticketStatus |
string |
注单状态running/reject/waiting |
maxBet |
decimal |
最大投注限额 |
minBet |
decimal |
最小投注限额 |
error