beta GetSingleTicket - Saba-sports/OddsDirectAPI_CN GitHub Wiki
此API用于更新单注的盘口数据
Request
GET /betting/{version}/GetSingleTicket?SportType=1&MarketId=314297898&key=h
Content-Type: application/json
X-Forwarded-For: client ip (如果通过代理使用API需要额外带入)
Authorization: Bearer {JWT token}
Parameter |
Format |
Length |
Mandatory |
Description |
sportType |
int |
|
Yes |
体育项目 ID |
marketId |
int |
|
Yes |
盘口ID |
key |
string |
10 |
Yes |
投注类型选项 |
oddsType |
int |
|
-- |
盘口赔率类型0 : by member setting (default) ; 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
Response
{
"sportType": int,
"marketId": int,
"isDecimalType": bool,
"point": decimal?,
"key": string,
"betType": int,
"oddsType": int,
"price": double,
"status": string,
"maxBet": decimal,
"minBet": decimal,
"liveHomeScore": int,
"liveAwayScore": int
}
Parameter |
Format |
Description |
SportType |
int |
赛事ID |
MarketId |
int |
盘口ID |
IsDecimalType |
bool |
是否仅支持欧洲盘 |
Point |
decimal? |
球头 |
Key |
string |
投注类型选项 |
BetType |
int |
投注类型ID |
OddsType |
int |
盘口赔率类型1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
Price |
double |
赔率 |
Status |
string |
盘口状态running / suspend / closePrice / closed |
MaxBet |
decimal |
最大下注限额 |
MinBet |
decimal |
最小投注限额 |
LiveHomeScore |
int |
主队得分 |
LiveAwayScore |
int |
客队得分 |