4.5. GetPlacementInfo
This method retrieves the information such as latest odds, minimum and maximum amount that can be used to place a bet. The information given is similar to the BetPlacementWindow from the Asianodds Web platform. Default wait timeout (the time the call will wait for Bookie Responses) is 60 seconds. However, this can be overridden by using the Timeout parameter on the request body.
Request
Method | URL |
---|---|
POST | /AsianOddsService/GetPlacementInfo |
REQUEST BODY | { |
Type | Params | Values |
---|---|---|
HEADER | AOToken | string |
HEADER | Accept | application/json |
REQUEST BODY | marketTypeId | int |
REQUEST BODY | bookies | string |
REQUEST BODY | isFullTime | int |
REQUEST BODY | gameId | long |
REQUEST BODY | gameType | string |
REQUEST BODY | oddsName | string |
REQUEST BODY | oddsFormat | string |
REQUEST BODY | timeout | int |
Request Values
Value | What is this for |
---|---|
AOToken | Token generated also by the Login method. This token identifies which user is requesting or executing the API Method. This has tobe sent for all of the request except during execution of the Login method |
accept | application/json |
marketTypeId | The ID of the market. This is 0 for Live, 1 for Today and 2 for Early. |
bookies(required) | Specifies the bookies which will return the GetPlacementInfoResults. |
isFullTime | 1 if fulltime, 0 if not |
gameId | GameID from the GetFeeds. Pertains to the Id from the game. |
gameType | Type of game where the bets will place. |
oddsName | Where the bets will be placed. Here are the valid values : |
oddsId | ID of the Odds. Value is : |
oddsFormat(optional) | Format of Odds. Valid Value is : |
timeout | Sometimes, when a request involves multiple bookies, some bookies takes time to return values, thereby holding up the performance or speed of returning the value, since this call will wait until either the default timeout (60 seconds) is reached or the bookie returned the values. When the default timeout (60 seconds) is reached and a particular bookie has not returned any response, the system will return whatever value it has received. This parameter overrides the 60 seconds default timeout. When specified, the system will wait until the specified value is reached, or all the bookies specified returned values and then returning whatever value it has received. |
Response Values
Value | What is this for |
---|---|
Code | Holds the status of the response. If its 0, then it is successful. Negative values indicate failure |
Awayname | Away Name |
AwayScore | Away Score |
Bookie | Bookie ID |
Currency | Currency that will be used when a bet will be placed. |
GameType | GameType where the bet will be placed |
HDPOrGoal | Handicap or Goal Value |
HomeName | Home Name |
IsFullTime | True if the match is full time , false if otherwise |
LeagueName | Name of the League |
MarketTypeId | The ID of the market. This is 0 for Live, 1 for Today |
and 2 for early. |
|
MaximumAmount | Maximum Amount that can be placed |
MinimumAmount | Minimum Amount that can be placed |
Message | Message returned by the server |
OddPlacementId | Unique ID of the returned bet placement information. |
OddsFormat | Odds Format |
Price | Price/Odds |
Rejected | True if rejected, false otherwise |
SportsType | SportsType of this placement data. |
Sample JSON Response
Response Type | Response |
---|---|
Success | { |
Fail | { |