beta PlaceBet - Saba-sports/OddsDirectAPI_CN GitHub Wiki
此API用于单注注单的下注
Request
POST /betting/{version}/PlaceBet?VendorTransId=123456&SportType=2&MarketId=312477279&Price=6.25&Point=0.0&Key=h&Stake=10&oddsType=4
Content-Type: application/json
X-Forwarded-For: client ip (如果通过代理使用API需要额外带入)
Authorization: Bearer {JWT token}
Parameter |
Format |
Length |
Mandatory |
Description |
vendorTransId |
string |
50 |
Yes |
厂商注单号码 |
sportType |
int |
|
Yes |
体育项目 ID |
marketId |
int |
|
Yes |
盘口ID |
price |
decimal |
8.2 |
Yes |
赔率 |
point |
decimal |
8.2 |
Yes |
球头 |
key |
string |
10 |
Yes |
投注类型选项 |
stake |
int |
|
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 |
Response
{
"betPrice": decimal,
"transId": long,
"currentPrice": decimal,
"stake": decimal,
"betStatus": short,
"betAcceptSecond": int,
"ticketStatus": string,
"maxBet": decimal,
"minBet": decimal
}
Parameter |
Format |
Description |
betPrice |
decimal |
下注赔率 |
transId |
long |
沙巴注单号码 |
currentPrice |
decimal |
盘口当下的赔率 |
stake |
decimal |
下注额度 |
betStatus |
short |
注单状态0 :下注成功 ;1 :下注失败 |
betAcceptSecond |
int |
等待秒数 |
ticketStatus |
string |
注单状态running/reject/waiting |
maxBet |
decimal |
最大投注限额 |
minBet |
decimal |
最小投注限额 |