PlaceBet - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to bet a single event.
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 (If using API via proxy)
Authorization: Bearer {JWT token}
Parameter |
Format |
Length |
Mandatory |
Description |
vendorTransId |
string |
50 |
Yes |
Specifies the transaction number of the vendor. When connection timeout, please use this ID to use /CheckPlaceBet to confirm the status of the bet. Recommended to use a unique value. |
sportType |
int |
|
Yes |
Specifies the identifier of the sport. |
marketId |
int |
|
Yes |
Specifies the identifier of the market. |
price |
decimal |
8.2 |
Yes |
Specifies the price. |
point |
decimal |
8.2 |
Yes |
Specifies the point spread. |
point2 |
decimal |
50.2 |
No |
Specifies the point 2 spread, if needed. |
key |
string |
10 |
Yes |
Specifies the key of the selection. |
stake |
int |
|
Yes |
Specifies the stake amount of the bet. |
oddsOption |
int |
|
-- |
Specifies the option of the betting when odds change.0:reject odds change (default) ; 1:accept only better odds ; 2:accept any change odds |
oddsType |
int |
|
-- |
Specifies the type of the odds.0 : by member setting (default) ; 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
language |
string |
|
-- |
Specifies the language of the response context. |
Response
{
"betPrice": decimal,
"transId": long,
"currentPrice": decimal,
"stake": decimal,
"betStatus": short,
"betAcceptSecond": int,
"ticketStatus": string,
"maxBet": decimal,
"minBet": decimal
}
Parameter |
Format |
Description |
betPrice |
decimal |
Specifies the odds price of betting. |
transId |
long |
Specifies the transaction number of saba system. |
currentPrice |
decimal |
Specifies the current price of betting. |
stake |
decimal |
Specifies the stake amount of the bet. |
betStatus |
short |
Specifies the status of betting.0 :success ;1 :fail |
betAcceptSecond |
int |
Specifies the waiting time of betting. |
ticketStatus |
string |
Specifies the initial status of the ticketrunning/reject/waiting |
maxBet |
decimal |
Specifies the maximum bet amount for the market. |
minBet |
decimal |
Specifies the minimum bet amount for the market. |