PlaceOutrightBet - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to bet a price on an outright.
Request
POST /betting/{version}/PlaceOutrightBet?VendorTransId=123456&SportType=2&Orid=1234567&Price=6.25&Stake=10
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. |
orid |
int |
|
Yes |
Specifies the identifier of the outright odds. |
price |
decimal |
8.2 |
Yes |
Specifies the price. |
stake |
int |
|
Yes |
Specifies the stake amount of the bet. |
language |
string |
|
-- |
Specific the language of the response context. |
Response
{
"betPrice": decimal,
"transId": long,
"currentPrice": decimal,
"stake": decimal,
"betStatus": short,
"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 |
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. |