Asianodds88 Web API

Version 1.8, November 18, 2016

Asianodds88 has taken reasonable efforts to ensure that the information contained in this publication is correct, but shall not be liable for decisions made in reliance on it. Asianodds88 will endeavor to provide notice to customers of changes being made to this document, but this notice cannot be guaranteed. Therefore, please note that this publication may be updated at any time. The information contained is therefore for guidance only.

Please note that by using the Asianodds88 Web API, you will be deemed to have understood and have accepted Asianodds88’s terms and conditions.

Overview

This document describes the Asianodds88 Web API and Methods that can be used to interact with the Asianodds88 Platform. The output of the Web API can either be JSON or XML format.

This API allows developers to build customized betting tools and interface that integrates with Asianodds88 Web API.

Functions available in the API include:

1. Authentication and Authorization
2. Get Bet Details
3. Get User History
4. List Matches
5. Feeds
6.Placement of Bet

We also offer a Push API which is described in a separate document.

Getting the API

Please contact Asianodds support to get the API. Support can create you the necessary credentials as well as provide connection details.

Email: support@asianodds88.com

Skype ID: asianodds88

Updating the API

New versions of the API may be released from time to time. Generally, these updates will include mandatory bug fixes, performance improvements and handy new features. Make sure you always use the latest API as failure to update can result in loss of service.

To determine the new methods available online, Kindly check: https://webapi.asianodds88.com/AsianOddsService/help

This link will provide you a quick overview of how the methods are used within the Web API.

1. Authentication Methods

Authentication methods are methods used to send your login request to the system. At the end of authentication and authorization, you will be provided with a Token. This needs to be sent for every request to the system as an AOToken header. This identifies you to the system that you have logged in and is authorized to use the system.

1.1. Login

Authenticate the user with the system and obtain the AOToken and AOKey for authorization. It also provides the URL.

Once the user has called this method, he/she have 60 seconds to be authorized. Authorization is done by calling Register method.

Request
Method URL
GET https://webapi.asianodds88.com/AsianOddsService/Login?username={username}&password={password}
Type Params Values
GET username string
GET password String in MD5 Hash
HEAD accept application/json or application/xml
Request Values
Value What is this for
username is the username used to login to the system
password is the password used to login to the system. This has to be in MD5 Format.
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it is 0 , then it is successful. Negative values indicate failure
Key Holds the AOKey token. This will be used when Register method is called to complete the authentication cycle
SuccessfulLogin Contains true if the login was successful , false if not.
TextMessage Contains the message returned by the server
Token This is the AOToken. This will always be sent to each and every request after login method.
Url Indicates where the next call should be. The system assigns a unique URL per user after login. This URL shall be used for subsequent request.
Username Contains the username of the caller.
Password This is always null but might be used in the future.
Sample JSON Response
Response Type Response
Success {"Code": 0,
"Result": {
"Key": "e1x3424126b748a992d68241e8caa1d0b59" ,
"Password": null,
"SuccessfulLogin": true,
"TextMessage": "You need to register your key and token within 60 seconds at the URL provided..",
"Token": "741515261115111235238179613884983039" ,
"Url": "https://webapi.asianodds88.com/AsianOddsService",
"Username": "TEST"
}
}
Fail {
"Code": -1,
"Result": {
"Key": null,
"Password": null,
"SuccessfulLogin": false,
"TextMessage": "Invalid userid or password. Please check your login
credentials and try again.",
"Token": "",
"Url": "",
"Username": "TEST"
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfLoginTokenJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<Key>e52324126b748a992d68241e8caa1d0b59</Key>
<Password i:nil="true"/>
<SuccessfulLogin>true</SuccessfulLogin>
<TextMessage>You need to registeryour key and token within 60 seconds at the URL provided..</TextMessage>
<Token>13700322367172912308253481855744326</Token>
<Url>https://webapi.asianodds88.com/AsianOddsService</Url>
<Username>TEST</Username>
</Result>
</ResponseDataOfLoginTokenJ9EWawJt>
Fail <ResponseDataOfLoginTokenJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<Key i:nil="true"/>
<Password i:nil="true"/>
<SuccessfulLogin>false</SuccessfulLogin>
<TextMessage>Invalid userid or password. Please check your login credentials and try again.</TextMessage>
<Token/>
<Url/>
<Username>TEST</Username>
</Result>
</ResponseDataOfLoginTokenJ9EWawJt>

1.2. Register

Request for authorization to use the API System. This is immediately used after calling the Login Method. This method has to be called within 60 seconds, otherwise the user who was just authenticated will not be authorized. It is important to send the request to the URL provided by the login method. This URL is the URL where subsequent requests will be made.

To ensure that you are the one that is authorized or authenticated, when the token is passed as part of any request, your IP Address will also be used as part of the authorization process. In the event that you change your IP Address while you are logged in to the system, you will be immediately de-authorized and you need to regain access by Logging in again.

Inactivity timeout is 30 minutes. This means that the user will get disconnected if there is no activity for 30 minutes.

Request
Method URL
GET /AsianOddsService/Register?username={username}
Type Params Values
HEAD AOKey string
HEAD AOToken string
HEAD accept string
GET username string
Request Values
Value What is this for
username is the username used to login to the system
AOKey Key generated by the Login method. This is used to authorize the user to use the API System
AOToken Token generated also by the Login method. This token identifies which user is requesting or executing the API Method. This has to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it is 0, then it is successful. Negative, values indicate failure
Result Returns a boolean if the authorization is successful or not
TextMessage Message returned by the server
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"Success": true,
"TextMessage": "Successfully Registered."
}
}
Fail {
"Code": -1,
"Result": {
"Success": false,
"TextMessage": "Please register to the Service URL provided when you logged in."
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfRegistrationResponseJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<Success>true</Success>
<TextMessage>Successfully Registered.</TextMessage>
</Result>
</ResponseDataOfRegistrationResponseJ9EWawJt>
Fail <ResponseDataOfRegistrationResponseJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<Success>false</Success>
<TextMessage>Login token error</TextMessage>
</Result>
</ResponseDataOfRegistrationResponseJ9EWawJt>

1.3. Logout

Logs out and ends the session of the user to the system

Request
Method URL
GET /AsianOddsService/Logout
Type Params Values
HEAD AOToken string
HEAD accept string
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure
Result Returns a boolean if the authorization is successful or not
TextMessage Message returned by the server
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": "Successful Logout"
}
Fail {
"Code": -1,
"Result": "Failed Logout. Have you logged in before ?"
}
Sample XML Response
Response Type Response
Success <ResponseDataOfstring
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>Successful Logout</Result>
</ResponseDataOfstring>
Fail <ResponseDataOfstring
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>Failed Logout. Have you logged in before ?</Result>
</ResponseDataOfstring>

1.4. IsLoggedIn

Shows if the user is currently logged in or not.

Request
Method URL
GET /AsianOddsService/IsLoggedIn
Type Params Values
HEAD AOToken string
HEAD accept string
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure
CurrentlyLoggedIn Returns a boolean if the user is currently logged in or not
LastAccess The last activity of the account in milliseconds since last epoch.
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"CurrentlyLoggedIn": true,
"LastAccess": 1468162574027
}
}
Fail {
"Code": -1,
"Result": {
"CurrentlyLoggedIn": false,
"LastAccess": -62135596800000
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfIsLoggedInJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<CurrentlyLoggedIn>true</CurrentlyLoggedIn>
<LastAccess>1468162665347</LastAccess>
</Result>
</ResponseDataOfIsLoggedInJ9EWawJt>
Fail <ResponseDataOfIsLoggedInJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<CurrentlyLoggedIn>false</CurrentlyLoggedIn>
<LastAccess>-62135596800000</LastAccess>
</Result>
</ResponseDataOfIsLoggedInJ9EWawJt>

2. Bet Details

The methods here provide information such as your currently running bets, the outstanding bets and those that are non-running bets. It provides information of the bet that was placed on the system by the user.

2.1. GetBets

This method shows all the bets placed by the user, both currently running and currently not on running state such as Pending, Void, Sending, etc. The maximum number of bet information returned is 150.

Request
Method URL
GET /AsianOddsService/GetBets
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
AwayName Away Name of the team
AwayScore Score of the Away Team
BetPlacementMessage Message provided by the bookie upon placing the bets.
BetPlacementReference Reference of the BetPlacement. This is the same BetPlacementReference provided when placing the bet. Developers can use this to determine what is the status of the bet.
BetType What type of bet this is. Example, this could be for Handicap Away.
Currency Shows the currency used to place the bet, or the member’s account currency.
FullTimeAwayScore Full time away score.
FullTimeHomeScore Full time home score.
GameType Type of game the bet was placed.
HalfTimeAwayScore Half time away score
HalfTimeHomeScore Half time home score.
HdpOrGoal Handicap or Goal Number
HomeName Home name of the team
HomeScore Score of the Home Team
KickoffTime Kick off time. Milliseconds since last epoch
LeagueName League of the name
Odds Odds of the game when the bet was placed
OddsType Type of the odds.
ReferenceNumber Reference number when bet has been placed. This will have a value when it has been successfully placed on the bookie.
Bookie Bookie the bet was placed
SportsType Type of sports. 1 for football, 2 for basketball
Status Status of the bet, if its in Running state, etc.
Term Halftime or FullTime Details
TicketDate The date when this has been created
Code Holds the status of the response. If its 0, then it is successful. Negative values indicate failure
Stake Shows how much stake was placed
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Data": [
{
"AwayName": "Swansea City",
"AwayScore": "-1",
"BetPlacementMessage": null,
"BetPlacementReference":
"MTpTSU46QVJTRU5BTDpTV0FOU0VBIENJVFk6KkVOR0xJU0ggUFJFTUlFUiBMRUFHVUU6MC41OQ==",
"BetType": "HDP Home",
"Bookie": "SIN",
"Currency": "EUR",
"FullTimeAwayScore": "0",
"FullTimeHomeScore": "0",
"GameType": "Handicap",
"HalfTimeAwayScore": "0",
"HalfTimeHomeScore": "0",
"HdpOrGoal": "-1.25",
"HomeName": "Arsenal",
"HomeScore": "-1",
"KickoffTime": 1476540000000,
"LeagueName": "*ENGLISH PREMIER LEAGUE",
"Odds": 0.59,
"OddsType": "MY",
"ReferenceNumber": "14453637016",
"SportsType": 1,
"Stake": 3,
"Status": "Running",
"Term": "FT",
"TicketDate": 1476173586000
}
]
}
Fail {
"Code": -1,
"Data": []
}
Sample XML Response
Response Type Response
Success <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Data>
<BetSummary>
<AwayName>Swansea City</AwayName>
<AwayScore>-1</AwayScore>
<BetPlacementMessage i:nil="true"/>
<BetPlacementReference>
MTpTSU46QVJTRU5BTDpTV0FOU0VBIENJVFk6KkVOR0xJU0ggUFJFTUlFUiBMRUFHVUU6MC41OQ==</BetPlacementReference>
<BetType>HDP Home</BetType>
<Bookie>SIN</Bookie>
<Currency>EUR</Currency>
<FullTimeAwayScore>0</FullTimeAwayScore>
<FullTimeHomeScore>0</FullTimeHomeScore>
<GameType>Handicap</GameType>
<HalfTimeAwayScore>0</HalfTimeAwayScore>
<HalfTimeHomeScore>0</HalfTimeHomeScore>
<HdpOrGoal>-1.25</HdpOrGoal>
<HomeName>Arsenal</HomeName>
<HomeScore>-1</HomeScore>
<KickoffTime>1476540000000</KickoffTime>
<LeagueName>*ENGLISH PREMIER LEAGUE</LeagueName>
<Odds>0.59</Odds>
<OddsType>MY</OddsType>
<ReferenceNumber>14453637016</ReferenceNumber>
<SportsType>1</SportsType>
<Stake>3</Stake>
<Status>Running</Status>
<Term>FT</Term>
<TicketDate>1476173586000</TicketDate>
</BetSummary>
</Data>
</ResponseDataArrayOfBetSummaryJ9EWawJt>
Fail  <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Data/>
</ResponseDataArrayOfBetSummaryJ9EWawJt>

2.2 GetBetByReference

This method will retrieve a single bet ticket placed by the user using a betreference issued by PlaceBetmethod.

There are instances that bet tickets may have same Bet Reference, example if a bet was placed on a match twice which has same home and away name, match name , bookie and odds. This method will show both bets. The differentiating factor is the bet ticket creation date. The latest bet placed will be placed on top of the list.

Request
Method URL
GET /AsianOddsService/GetBetByReference?betReferece=<BetReference>
Type Params Values
HEAD AOToken string
HEAD Accept application/json or application/xml
GET betReference BetReference issued by the PlaceBet
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
betReference Bet Reference parameter issued by the PlaceBet method after the bet has been placed.
Response Values
Value What is this for
AwayName Away Name of the team
AwayScore Score of the Away Team
BetPlacementMessage Message provided by the bookie upon placing the bets.
BetPlacementReference Reference of the BetPlacement. This is the same BetPlacementReference provided when placing the bet. Developers canuse this to determine what is the status of the bet.
BetType What type of bet this is. Example, this could be for Handicap Away.
Currency Shows the currency used to place the bet.
FullTimeAwayScore Full time away score.
FullTimeHomeScore Full time home score.
GameType Type of game the bet was placed.
HalfTimeAwayScore Half time away score
HalfTimeHomeScore Half time home score.
HdpOrGoal Handicap or Goal Number
HomeName Home name of the team
HomeScore Score of the Home Team
KickoffTime Kick off time. Milliseconds since last epoch
LeagueName Name of League where the bet was placed.
Odds Odds of the game when the bet was placed
OddsType Type of the odds.
ReferenceNumber Reference number when bet has been placed. This will have a value when it has been successfully placed on the bookie.
Bookie Bookie the bet was placed
SportsType Type of sports. 1 for football, 2 for basketball
Status Status of the bet, if its in Running state, etc.
Term Halftime or FullTime Details
TicketDate The date when this has been created
Code Holds the status of the response. If its 0, then it is successful. Negative values indicate failure
Stake Shows how much stake was placed
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"AwayName": "Arsenal",
"AwayScore": "-1",
"BetPlacementMessage": null,
"BetPlacementReference": "MTpTQk86TUFOQ0hFU1RFUiBVTklURUQ6QVJTRU5BTDoqRU5HTElTSCBQUkVNSUVSIExFQUdVRTowLjg==",
"BetType": "HDP Home",
"Bookie": "SIN",
"Currency": "EUR",
"FullTimeAwayScore": "0",
"FullTimeHomeScore": "0",
"GameType": "Handicap",
"HalfTimeAwayScore": "0",
"HalfTimeHomeScore": "0",
"HdpOrGoal": "0",
"HomeName": "Manchester United",
"HomeScore": "-1",
"KickoffTime": 1479558600000,
"LeagueName": "*ENGLISH PREMIER LEAGUE",
"Odds": 0.8,
"OddsType": "MY",
"ReferenceNumber": "15634975525",
"SportsType": 1,
"Stake": 2,
"Status": "Running",
"Term": "FT",
"TicketDate": 1479395384000
}
}
Fail {
"Code": -1,
"Data": []
}
Sample XML Response
Response Type Response
Success <ResponseDataOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<AwayName>Arsenal</AwayName>
<AwayScore>-1</AwayScore>
<BetPlacementMessage i:nil="true"/>
<BetPlacementReference>
MTpTQk86TUFOQ0hFU1RFUiBVTklURUQ6QVJTRU5BTDoqRU5HTElTSCBQUkVNSUVSIExFQUdVRTowLjg==</BetPlacementReference>
<BetType>HDP Home</BetType>
<Bookie>SBO</Bookie>
<Currency>EUR</Currency>
<FullTimeAwayScore>0</FullTimeAwayScore>
<FullTimeHomeScore>0</FullTimeHomeScore>
<GameType>Handicap</GameType>
<HalfTimeAwayScore>0</HalfTimeAwayScore>
<HalfTimeHomeScore>0</HalfTimeHomeScore>
<HdpOrGoal>0</HdpOrGoal>
<HomeName>Manchester United</HomeName>
<HomeScore>-1</HomeScore>
<KickoffTime>1479558600000</KickoffTime>
<LeagueName>*ENGLISH PREMIER LEAGUE</LeagueName>
<Odds>0.8</Odds>
<OddsType>MY</OddsType>
<ReferenceNumber>15634975525</ReferenceNumber>
<SportsType>1</SportsType>
<Stake>2</Stake>
<Status>Running</Status>
<Term>FT</Term>
<TicketDate>1479395384000</TicketDate>
</Result>
</ResponseDataOfBetSummaryJ9EWawJt>
Fail <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
-1

2.3.GetRunningBets

This method shows all the running bets placed by the user. This is similar to clicking the MyBets from the Asianodds we platform. The maximum number of bet information returned is 50.

2-3-img
Request
Method URL
GET /AsianOddsService/GetRunningBets
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
AwayName Away Name of the team
AwayScore Score of the Away Team
BetPlacementMessage Message provided by the bookie upon placing the bets.
BetPlacementReference Reference of the BetPlacement. This is the same BetPlacementReference provided when placing the bet. Developers can use this to determine what is the status of the bet.
BetType What type of bet this is. Example, this could be for Handicap Away.
Currency Shows the currency used to place the bet.
FullTimeAwayScore Full time away score.
FullTimeHomeScore Full time home score.
GameType Type of game the bet was placed.
HalfTimeAwayScore Half time away score
HalfTimeHomeScore Half time home score.
HdpOrGoal Handicap or Goal Number
HomeName Home name of the team
HomeScore Score of the Home Team
KickoffTime Kick off time. Milliseconds since last epoch
LeagueName Name of the League
Odds Odds of the game when the bet was placed
OddsType Type of the odds.
ReferenceNumber Reference number when bet has been placed. This will have a value when it has been successfully placed on the bookie.
Bookie Bookie the bet was placed
SportsType Type of sports. 1 for football, 2 for basketball
Status Status of the bet, if its in Running state, etc.
Term Halftime or FullTime Details
TicketDate The date when this has been created
Code Holds the status of the response. If its 0, then it is successful. Negative values indicate failure
Stake Shows how much stake was placed
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Data": [
{
"AwayName": "Swansea City",
"AwayScore":"-1",
"BetPlacementMessage": null,
"BetPlacementReference":
"MTpTSU46QVJTRU5BTDpTV0FOU0VBIENJVFk6KkVOR0xJU0ggUFJFTUlFUiBMRUFHVUU6MC41OQ==",
"BetType": "HDP Home",
"Bookie": "SIN",
"Currency": "EUR",
"FullTimeAwayScore":"0",
"FullTimeHomeScore": "0",
"GameType": "Handicap",
"HalfTimeAwayScore": "0",
"HalfTimeHomeScore": "0",
"HdpOrGoal": "-1.25",
"HomeName": "Arsenal",
"HomeScore": "-1",
"KickoffTime": 1476540000000,
"LeagueName": "*ENGLISH PREMIER LEAGUE",
"Odds": 0.59,
"OddsType": "MY",
"ReferenceNumber": "14453637016",
"SportsType": 1,
"Stake": 3,
"Status": "Running",
"Term": "FT",
"TicketDate": 1476173586000
}
]
}
Fail {
"Code": -1,
"Data": []
}
Sample XML Response
Response Type Response
Success <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Data>
<BetSummary>
<AwayName>Swansea City</AwayName>
<AwayScore>-1</AwayScore>
<BetPlacementMessage i:nil="true"/>
<BetPlacementReference>MTpTSU46QVJTRU5BTDpTV0FOU0VBIENJVFk6KkVOR0xJU0ggUFJFTUlFUiBMRUFHVUU6MC41OQ==</BetPlacementReference>
<BetType>HDP Home</BetType>
<Bookie>SIN</Bookie>
<Currency>EUR</Currency>
<FullTimeAwayScore>0</FullTimeAwayScore>
<FullTimeHomeScore>0</FullTimeHomeScore>
<GameType>Handicap</GameType>
<HalfTimeAwayScore>0</HalfTimeAwayScore>
<HalfTimeHomeScore>0</HalfTimeHomeScore>
<HdpOrGoal>-1.25</HdpOrGoal>
<HomeName>Arsenal</HomeName>
<HomeScore>-1</HomeScore>
<KickoffTime>1476540000000</KickoffTime>
<LeagueName>*ENGLISH PREMIER LEAGUE</LeagueName>
<Odds>0.59</Odds>
<OddsType>MY</OddsType>
<ReferenceNumber>14453637016</ReferenceNumber>
<SportsType>1</SportsType>
<Stake>3</Stake>
<Status>Running</Status>
<Term>FT</Term>
<TicketDate>1476173586000</TicketDate>
</BetSummary>
</Data>
</ResponseDataArrayOfBetSummaryJ9EWawJt>
Fail <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Data/>
</ResponseDataArrayOfBetSummaryJ9EWawJt>

2.4. GetNonRunningBets

This method shows all of the non-running bets placed by the user. The maximum number of bet information returned is 100.

Request
Method URL
GET /AsianOddsService/GetNonRunningBets
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
AwayName Away Name of the team
AwayScore Score of the Away Team
BetPlacementMessage Message provided by the bookie upon placing the bets.
BetPlacementReference Reference of the BetPlacement. This is the same BetPlacementReference provided when placing the bet. Developers can use this to determine what is the status of the bet.
BetType What type of bet this is. Example, this could be for Handicap Away.
Currency Shows the currency used to place the bet.
FullTimeAwayScore Full time away score.
FullTimeHomeScore Full time home score.
GameType Type of game the bet was placed.
HalfTimeAwayScore Half time away score
HalfTimeHomeScore Half time home score.
HdpOrGoal Handicap or Goal Number
HomeName Home name of the team
HomeScore Score of the Home Team
KickoffTime Kick off time. Milliseconds since last epoch
LeagueName League of the name
Odds Odds of the game when the bet was placed
OddsType Type of the odds.
ReferenceNumber Reference number when bet has been placed. This will have a valuewhen it has been successfully placed on the bookie.
Bookie Bookie the bet was placed
SportsType Type of sports. 1 for football, 2 for basketball
Status Status of the bet, if its in Running state, etc.
Term Halftime or FullTime Details
TicketDate The date when this has been created
Code Holds the status of the response. If its 0, then it is successful. Negative values indicate failure
Stake Shows how much stake was placed
Sample JSON Response
Response Type Response
Success  {
"Code": 0,
"Data":[
{
"AwayName": "Swansea City",
"AwayScore": "-1",
"BetPlacementMessage": null,
"BetPlacementReference": "MTpTSU46QVJTRU5BTDpTV0FOU0VBIENJVFk6KkVOR0xJU0ggUFJFTUlFUiBMRUFHVUU6MC41OQ==",
"BetType": "HDP Home",
"Bookie": "SIN",
"Currency": "EUR",
"FullTimeAwayScore": "0",
"FullTimeHomeScore": "0",
"GameType": "Handicap",
"HalfTimeAwayScore": "0",
"HalfTimeHomeScore": "0",
"HdpOrGoal": "-1.25",
"HomeName": "Arsenal",
"HomeScore": "-1",
"KickoffTime": 1476540000000,
"LeagueName": "*ENGLISH PREMIER LEAGUE",
"Odds": 0.59,
"OddsType": "MY",
"ReferenceNumber": "14453637016",
"SportsType": 1,
"Stake": 3,
"Status": "Pending",
"Term": "FT",
"TicketDate": 1476173586000
}
]
}
Fail {
"Code": -1,
"Data": []
}
Sample XML Response
Response Type Response
Success <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Data>
<BetSummary>
<AwayName>Swansea City</AwayName>
<AwayScore>-1</AwayScore>
<BetPlacementMessage i:nil="true"/>
<BetPlacementReference>MTpTSU46QVJTRU5BTDpTV0FOU0VBIENJVFk6KkVOR0xJU0ggUFJFTUlFUiBMRUFHVUU6MC41OQ==
</BetPlacementReference>
<BetType>HDP Home</BetType>
<Bookie>SIN</Bookie>
<Currency>EUR</Currency>
<FullTimeAwayScore>0</FullTimeAwayScore>
<FullTimeHomeScore>0</FullTimeHomeScore>
<GameType>Handicap</GameType>
<HalfTimeAwayScore>0</HalfTimeAwayScore>
<HalfTimeHomeScore>0</HalfTimeHomeScore>
<HdpOrGoal>-1.25</HdpOrGoal>
<HomeName>Arsenal</HomeName>
<HomeScore>-1</HomeScore>
<KickoffTime>1476540000000</KickoffTime>
<LeagueName>*ENGLISH PREMIER LEAGUE</LeagueName>
<Odds>0.59</Odds>
<OddsType>MY</OddsType>
<ReferenceNumber>14453637016</ReferenceNumber>
<SportsType>1</SportsType>
<Stake>3</Stake>
<Status>Running</Status>
<Term>FT</Term>
<TicketDate>1476173586000</TicketDate>
</BetSummary>
</Data>
</ResponseDataArrayOfBetSummaryJ9EWawJt>
Fail <ResponseDataArrayOfBetSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Data/>
</ResponseDataArrayOfBetSummaryJ9EWawJt>

3. Account Summary

The methods here provide information such as your currently running bets, the outstanding bets and those that are non-running bets. It provides information of the bet that was placed on the system by the user.

3.1.GetAccountSummary

This method show the account summary of the user. The information shown is similar to the Account Summary provided from the platform.

3-1
Request
Method URL
GET /AsianOddsService/GetAccountSummary
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it is 0, then it is successful. Negative values indicate failure
Credit Credit of the user’s account
CreditCurrency Currency of user account’s credit
Message The message from the system
Outstanding Outstanding Amount of the user’s account
OutstandingCurrency Currency of the Outstanding Amount of the user.
TodayPnL Today’s Profit and Loss
TodayPnlCurrency Currency of Today’s Profit and Loss
YesterdayPnl Yesterday’s Profit and Loss
YesterdayPnlCurrency Currency of Yesterday’s profile and loss
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"Credit": 2396.75,
"CreditCurrency": "EUR",
"Message": "Showing Account Summary for User TEST",
"Outstanding": 147.7,
"OutstandingCurrency": "EUR",
"TodayPnL": 0,
"TodayPnLCurrency": "EUR",
"YesterdayPnL": 0,
"YesterdayPnLCurrency": "EUR"
}
}
Fail {
"Code": -1,
"Result": {
"Credit": 0,
"CreditCurrency": null,
"Message": "Username does not exists",
"Outstanding": 0,
"OutstandingCurrency": null,
"TodayPnL": 0,
"TodayPnLCurrency": null,
"YesterdayPnL": 0,
"YesterdayPnLCurrency": null
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfAccountSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<Credit>978.56</Credit>
<CreditCurrency>EUR</CreditCurrency>
<Message>Showing Account Summary for User WEBAPIUSER01</Message>
<Outstanding>3</Outstanding>
<OutstandingCurrency>EUR</OutstandingCurrency>
<TodayPnL>0</TodayPnL>
<TodayPnLCurrency>EUR</TodayPnLCurrency>
<YesterdayPnL>0</YesterdayPnL>
<YesterdayPnLCurrency>EUR</YesterdayPnLCurrency>
</Result>
</ResponseDataOfAccountSummaryJ9EWawJt>
Fail <ResponseDataOfAccountSummaryJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<Credit>0</Credit>
<CreditCurrency i:nil="true"/>
<Message>Username does not exists</Message>
<Outstanding>0</Outstanding>
<OutstandingCurrency i:nil="true"/>
<TodayPnL>0</TodayPnL>
<TodayPnLCurrency i:nil="true"/>
<YesterdayPnL>0</YesterdayPnL>
<YesterdayPnLCurrency i:nil="true"/>
</Result>
</ResponseDataOfAccountSummaryJ9EWawJt>

3.2. GetHistoryStatement

Retrieves betting statement history of the account. The information provided is similar to the History on the Asianodds web platform as shown below:

3-2
Request
Method URL
GET /AsianOddsService/GetHistoryStatement?from={mm/dd/yyyy}&to={mm/dd/yyyy}&bookies={listofbookies}&shouldHideTransactionData={true|false}
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
GET from String in mm/dd/yyyy format
GET to String in mm/dd/yyyy format
GET bookies String list of bookies separated by comma
GET shouldHideTransactionData Boolean true or false
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
from Start date the History Statement should include when reporting the statement
to End date the history statement should include when reporting the statement
bookies List of bookies. Bookies here are the Bookie ID retrieved from GetBookies method. Multiple bookies has to be separated by comma.
shouldHideTransactionData True or false,the transaction total is to be hidden or not.
Sample Request URL

/AsianOddsService/GetHistoryStatement?from=04/19/2016&to=07/11/2016&bookies=IBC,SBO,SIN,PIN,ISN,GA&shouldHideTransactionData=false

Response Values
Value What is this for
Balance Shows the running balance
Commission Shows the commission
DateDay Shows the date the bet was posted
DateDayName Name of the Day of the week
Remark Message for this statement
Turnover Stake
WinLoss Amount won or lost
Code Holds the status of the response. If it is 0, then it is successful. Negative values indicate failure
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"BetHistoryStatementItems": [
{
"Balance": "2 549.45",
"Commission": "0.00",
"DateDay": "4/27/2016",
"DateDayName": "Wednesday",
"Remark": "Beting Statement",
"TurnOver": "50.00",
"WinLoss": "-10.28"
},
{
"Balance": "2 544.45",
"Commission": "0.00",
"DateDay": "4/28/2016 ",
"DateDayName": "Thursday",
"Remark": "Beting Statement",
"TurnOver": "5.00",
"WinLoss": "- 5.00"
},
],
"TotalCommission": "0.00",
"TotalTurnover": "55.00",
"TotalWinLoss": "-15.28",
}
}
Fail {
"Code": -1,
"Result": {
"BetHistoryStatementItems": null,
"TotalCommission": null,
"TotalTurnover": null,
"TotalWinLoss": null,
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfBetHistoryStatementJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<BetHistoryStatementItems>
<BetHistoryStatementItem>
<Balance>2 549.45</Balance>
<Commission>0.00</Commission>
<DateDay>>4/27/2016 </DateDay>
<DateDayName>Wednesday</DateDayName>
<Remark>Beting Statement</Remark>
<TurnOver>50.00</TurnOver>
<WinLoss>- 10.28;/WinLoss>
</BetHistoryStatementItem>
<BetHistoryStatementItem>
<Balance>2 544.45</Balance>
<Commission>0.00</Commission>
<DateDay>>4/28/2016 </DateDay>
<DateDayName>Thursday</DateDayName>
<Remark>Beting Statement</Remark>
<TurnOver> 5.00</TurnOver>
<WinLoss> 5.00;/WinLoss>
</BetHistoryStatementItem>
</BetHistoryStatementItems>
<TotalTurnover> 55.00;/TotalTurnover>
<TotalWinLoss> -15.28;/TotalWinLoss>
</Result>
</ResponseDataOfBetHistoryStatementJ9EWawJt>
Fail <ResponseDataOfBetHistoryStatementJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<Credit>0</Credit>
<BetHistoryStatementItems i:nil="true"/>
<TotalCommisioni:nil="true"/>
<TotalTurnoveri:nil="true"/>
<TotalWinLossi:nil="true"/>
</Result>
</ResponseDataOfBetHistoryStatementJ9EWawJt>

3.3. GetBookies

Shows the possible bookies in the system.

Request
Method URL
GET /AsianOddsService/GetBookies
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it is 0, then it is successful. Negative values indicate failure
Id ID of the Bookie. This is the BookieID used on the system
Name Name of the Bookie
IsFeedAvailable True if the bookie is available in the system and has a feed, false if not.
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Data": [
{
"IsFeedAvailable": false,
"Id": "IBC",
"Name": "IBCBET"},
{
"IsFeedAvailable": true,
"Id": "SBO",
"Name": "SBOBET"
},
{
"IsFeedAvailable": false,
"Id": "PIN",
"Name": "PINNACLE"
},
{
"IsFeedAvailable": false,
"Id": "SIN",
"Name": "SINGBET"
},
{
"IsFeedAvailable": false,
"Id": "ISN",
"Name": "BETISN"
},
{
"IsFeedAvailable": false,
"Id": "GA2",
"Name": "GA288"
}
]
}
Fail {
"Code": -1,
"Data": null
}
Sample XML Response
Response Type Response
Success <ResponseDataArrayOfBookieJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Data>
<Bookie>
<IsFeedAvailable>false</IsFeedAvailable>
<Id>IBC</Id>
<Name>IBCBET</Name>
</Bookie>
<Bookie>
<IsFeedAvailable>false</IsFeedAvailable>
<Id>SBO</Id>
<Name>SBOBET</Name>
</Bookie>
<Bookie>
<IsFeedAvailable>false</IsFeedAvailable>
<Id>PIN</Id>
<Name>PINNACLE</Name>
</Bookie>
<Bookie>
<IsFeedAvailable>false</IsFeedAvailable>
<Id>SIN</Id>
<Name>SINGBET</Name>
</Bookie>
<Bookie>
<IsFeedAvailable>false</IsFeedAvailable>
<Id>ISN</Id>
<Name>BETISN</Name>
</Bookie>
<Bookie>
<AvailIsFeedAvailableable>false</IsFeedAvailable>
<Id>GA2</Id>
<Name>GA288</Name>
</Bookie>
</Data>
</ResponseDataArrayOfBookieJ9EWawJt>
Fail <ResponseDataArrayOfBookieJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Data i:nil="true"/>
</ResponseDataArrayOfBookieJ9EWawJt>

3.4.GetUserInformation

Show the user configuration in the system. The information provided is based on the settings from the platform.

3-4
Request
Method URL
GET /AsianOddsService/GetUserInformation
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it is 0, then it is successful. Negative values indicate failure
BaseCurrency Default Currency of the user
ActiveBookies Contains the Active Bookies. If a bookie is not put into the active list from the settings, that bookie will not appear on the bookie list.
Note that feeds, list of matches and leagues that can be queried and use depends on this list for that user.
CreationDate When the account was created in Milliseconds format since last epoch
DefaultStake Default Stake to be used, 0 if disabled.
ExpiryDate When the account will expire, in milliseconds format since last epoch
ExternalIP IP Address used.
OddsType OddsType by default. It can be :
MY for Malay
00 for European
HK for Hong Kong
Status Shows if the account is active or not
UserId Username used.
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"ActiveBookies": [
"IBC",
"SBO",
"PIN",
"ISN",
"GA2"
],
"BaseCurrency": "EUR",
"CreationDate":1442928703000,
"DefaultStake": 0,
"ExpiryDate": 4102444800000,
"ExternalIp": "127.0.0.1",
"OddsType": "MY",
"Status": "Active",
"UserId": "SUPPORT"
}
}
Fail {
"Code": -1,
"Result": {
"ActiveBookies": [],
"BaseCurrency": null,
"CreationDate": 0,
"DefaultStake": 0,
"ExpiryDate": 0,
"ExternalIp": null,
"OddsType": null,
"Status": null,
"UserId": null
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfUserInformationKlUijKeP
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIProcessors.UserSession">
<a:ActiveBookies
xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>IBC</b:string>
<b:string>SBO</b:string>
<b:string>PIN</b:string>
<b:string>ISN</b:string>
<b:string>GA2</b:string>
</a:ActiveBookies>
<a:BaseCurrency>EUR</a:BaseCurrency>
<a:CreationDate>1442928703000</a:CreationDate>
<a:DefaultStake>0</a:DefaultStake>
<a:ExpiryDate>4102444800000</a:ExpiryDate>
<a:ExternalIp>127.0.0.1</a:ExternalIp>
<a:OddsType>MY</a:OddsType>
<a:Status>Active</a:Status>
<a:UserId>SUPPORT</a:UserId>
</Result>
</ResponseDataOfUserInformationKlUijKeP>
Fail <ResponseDataOfUserInformationKlUijKeP
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result
xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIProcessors.UserSession">
<a:ActiveBookies
xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<a:BaseCurrency i:nil="true"/>
<a:CreationDate>0</a:CreationDate>
<a:DefaultStake>0</a:DefaultStake>
<a:ExpiryDate>0</a:ExpiryDate>
<a:ExternalIp i:nil="true"/>
<a:OddsType i:nil="true"/>
<a:Status i:nil="true"/>
<a:UserId i:nil="true"/>
</Result>
</ResponseDataOfUserInformationKlUijKeP>

4. Betting Methods

Betting methods are methods used to receive Feed Information from our Platform and providing you a method to bet. This includes getting the League list, Sport List, Matches, Complete Feeds, and placing a bet.

4.1. GetLeagues

This method retrieves the list of leagues from the system.

Request
Method URL
GET /AsianOddsService/GetLeagues?sportsType={SportsType}&marketTypeId={marketTypeId}&bookies={ALL|List of Bookies}&since={since}
Type Params Values
HEAD AOToken  string
HEAD  Accept application/json or application/xml
GET bookies string
GET sportsType Int
GET marketTypeId Int
GET since long
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
bookies(optional) List of Bookies separated by comma(,). If you want all bookies, then please use ALL keyword. Note that this is an optional field and without any value means that you have chosen ALL bookies.
sportsType(optional) Type of sports of which leagues to display. If none specified, then by default all will be shown. SportsType can be retrieved by calling GetSports.
marketTypeId(required) MarketTypeId refers to the type of market. Valid Values are {0,1,2}
0 : Live Market
1 : Today Market
2 : Early Market
If MarketTypeId is not specified, then 0 is the default value.
since(optional) Since is a delta switch. The value expected is a milliseconds since last epoch. When specified, the data returned are only the data that was generated since the value of this. This is normally used to return subset of data that have been updated.
When this parameter is not specified then all of the data will be returned.
Response Values
Value What is this for
Code Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure
Bookies Bookies for the particular league
LeagueID Unique identification of League
LeagueName Name of the League
SportsType Sports type
Since Last Updated Date in Milliseconds since epoch
MarketTypeId MarketType of the League where it is part of. Value can be any of the below :
0 -Live Market
1 -Today market
2 -Early Market
Sample JSON Response
Response Type Response
Success Code: 0,
"Result": {
"Sports": [
{
"League": [
{
"Bookies": [
"ISN",
"IBC",
"SIN"
],
"LeagueId": -1733936463,
"LeagueName": "VIETNAM CHAMPIONSHIP U21 QUALIFIERS",
"MarketTypeId": 0,
"Since": 1476184438938
},
{
"Bookies": [
"ISN",
"IBC",
"SIN",
"SBO"
],
"LeagueId": 1332151953,
"LeagueName": "BRICS CUP U17",
"MarketTypeId": 0,
"Since": 1476184441682
},
{
"Bookies": [
"ISN",
"IBC",
"SIN",
"SBO"
],
"LeagueId": 10759462,
"LeagueName": "INDIA GOA LEAGUE U20",
"MarketTypeId": 0,
"Since": 1476184441806
},
{
"Bookies": [
"ISN",
"IBC",
"SIN",
"SBO"
],
"LeagueId": -208733113,
"LeagueName": "RUSSIA 2ND DIVISION",
"MarketTypeId": 0,
"Since": 1476184439071
},
{
"Bookies": [
"ISN",
"IBC",
"SIN",
"SBO"
],
"LeagueId": -814329617,
"LeagueName": "RUSSIA DIVISION 2",
"MarketTypeId": 0,
"Since": 1476184441196
}
],
"SportsType": 1
}
]
}
}
Fail  {
"Code": -1,
"Result": null
}
Sample XML Response
Response Type Response
Success <ResponseDataOfLeagueListzVmMY9xc
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.Leagues">
<a:Sports>
<a:LeagueSportsType>
<a:League>
<a:League>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>IBC</b:string>
<b:string>SIN</b:string>
</a:Bookies>
<a:LeagueId>-1733936463</a:LeagueId>
<a:LeagueName>VIETNAM CHAMPIONSHIP U21 QUALIFIERS</a:LeagueName>
<a:MarketTypeId>0</a:MarketTypeId>
<a:Since>1476184559864</a:Since>
</a:League>
<a:League>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>IBC</b:string>
<b:string>SIN</b:string>
<b:string>SBO</b:string>
</a:Bookies>
<a:LeagueId>1332151953</a:LeagueId>
<a:LeagueName>BRICS CUP U17</a:LeagueName>
<a:MarketTypeId>0</a:MarketTypeId>
<a:Since>1476184560938</a:Since>
</a:League>
<a:League>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>IBC</b:string>
<b:string>SIN</b:string>
<b:string>SBO</b:string>
</a:Bookies>
<a:LeagueId>10759462</a:LeagueId>
<a:LeagueName>INDIA GOA LEAGUE U20</a:LeagueName>
<a:MarketTypeId>0</a:MarketTypeId>
<a:Since>1476184564801</a:Since>
</a:League>
<a:League>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>IBC</b:string>
<b:string>SIN</b:string>
<b:string>SBO</b:string>
</a:Bookies>
<a:LeagueId>-208733113</a:LeagueId>
<a:LeagueName>RUSSIA 2ND DIVISION</a:LeagueName>
<a:MarketTypeId>0</a:MarketTypeId>
<a:Since>1476184555635</a:Since>
</a:League>
<a:League>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>IBC</b:string>
<b:string>SIN</b:string>
<b:string>SBO</b:string>
</a:Bookies>
<a:LeagueId>-814329617</a:LeagueId>
<a:LeagueName>RUSSIA DIVISION 2</a:LeagueName>
<a:MarketTypeId>0</a:MarketTypeId>
<a:Since>1476184560958</a:Since>
</a:League>
</a:League>
<a:SportsType>1</a:SportsType>
</a:LeagueSportsType>
</a:Sports>
</Result>
</ResponseDataOfLeagueListzVmMY9xc>
Fail <ResponseDataOfLeagueListzVmMY9xc
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result i:nil="true"xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.Leagues"/>
</ResponseDataOfLeagueListzVmMY9xc>

4.2. GetSports

This method retrieves the list of sports available in the system

Request
Method URL
GET /AsianOddsService/GetSports
Type Params Values
HEAD AOToken string
HEAD accept application/json or application/xml
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
Response Values
Value What is this for
Code Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure
Id Id of the sports
Name Name of the sports
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Data": [
{
"Id": 1,
"Name": "Football"
}
]
}
Fail {
"Code": -1,
"Data": null
}
Sample XML Response
Response Type Response
Success <ResponseDataArrayOfSportsTypeJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Data>
<SportsType>
<Id>1</Id>
<Name>Football</Name>
</SportsType>
</Data>
</ResponseDataArrayOfSportsTypeJ9EWawJt>
Fail <ResponseDataArrayOfSportsTypeJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Data i:nil="true"/>
</ResponseDataArrayOfSportsTypeJ9EWawJt>

4.3.GetMatches

This method retrieves the list of matches available on the system.

Request
Method URL
GET /AsianOddsService/GetMatches?sportsType={SportsType}&marketTypeId={MarketTypeId}&bookies={ALL|List of BookieID}&leagues={ALL|list of leagueId}&since={since}
Type Params Values
HEAD AOToken string
HEAD Accept application/json or application/xml
GET bookies string
GET sportsType int
GET leagues String
GET marketTypeId Int
GET since long
Request Values
Value What is this for
AOToken Token generated also by the Login method. This token identifies which user is requesting orexecuting the API Method. This has to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
bookies (optional) List of BookieID separated by comma(,). If you want all bookies, then please use ALL keyword. Note that this is an optional field and without any value means that you have chosen ALL bookies.
sportsType (optional) Type of sports of which leagues to display. If none specified, all will be shown. SportsType can be retrieved by calling GetSports.
Leagues (optional) List of leagueID separated by comma(,). If you want all leagues, then either leave this empty or use ALL keyword.
marketTypeId (required) MarketTypeId refers to the type of market. Valid Values are {0,1,2}
0 : Live Market
1 : Today Market
2 : Early Market
If MarketTypeId is not specified, then 0 is the default value.
since (optional) Since is a delta switch. The value expected is a milliseconds since last epoch. When specified,the data returned are only the data that was generated since the value of this. This is normally used to return subset of data that have been updated.
When this parameter is not specified then all of the data will be returned.
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
Away Away Name
Home Home Name
Since Last Update of a specific event in milliseconds since last epoch
MarketType Market Type in text. Values is “Live”, “Today” or “Early”
MarketTypeId The ID of the market. This is 0 for Live, 1 for Today and 2 for early.
MatchId Identification of the Match
StartTime StartTime or Kickoff Time in Milliseconds since last Epoch.
StartsOn A converted date/time string of the StartTime
SportsType SportsType ID
Bookies List of bookies with this match
IsLive 1 if the match is live, 0 if otherwise
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"EventSportsTypes": [
{
"Events": [
{
"Away": "Club Ciclista Olimpico",
"Bookies": [
"ISN",
"SBO",
"IBC",
"PIN",
"SIN"
],
"Home": "Asociacion Atletica Quimsa",
"IsLive": 1,
"LeagueId": 1578895411,
"LeagueName": "ARGENTINA NATIONAL BASKETBALL LEAGUE",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -62010984,
"Since": 1475718011401,
"StartTime": 1475712000000,
"StartsOn": "10/06/2016 12:00:00.000 AM"
},
{
"Away": "San Lorenzo de Almagro",
"Bookies": [
"ISN",
"SBO",
"IBC",
"PIN",
"SIN"
],
"Home": "Gimnasia y Esgrima",
"IsLive": 1,
"LeagueId": 1578895411,
"LeagueName": "ARGENTINA NATIONAL BASKETBALL LEAGUE",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -922869538,
"Since": 1475718011406,
"StartTime": 1475712000000,
"StartsOn": "10/06/2016 12:00:00.000 AM"
}
],
"SportsType": 2
}
]
}
}
Fail {
"Code": -1,
"Result": null
}
Sample XML Response
Response Type Response
Success <ResponseDataOfEventListm5wKUPk0
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.Events">
<a:EventSportsTypes>
<a:EventSportsType>
<a:Events>
<a:EventListEvent>
<a:Away>Club Ciclista Olimpico</a:Away>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>SBO</b:string>
<b:string>IBC</b:string>
<b:string>PIN</b:string>
<b:string>SIN</b:string>
</a:Bookies>
<a:Home>Asociacion Atletica Quimsa</a:Home>
<a:IsLive>1</a:IsLive>
<a:LeagueId>1578895411</a:LeagueId>
<a:LeagueName>ARGENTINA NATIONAL BASKETBALL LEAGUE</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-62010984</a:MatchId>
<a:Since>1475718011401</a:Since>
<a:StartTime>1475712000000</a:StartTime>
<a:StartsOn>10/06/2016 12:00:00.000 AM</a:StartsOn>
</a:EventListEvent>
<a:EventListEvent>
<a:Away>San Lorenzo de Almagro</a:Away>
<a:Bookies xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>ISN</b:string>
<b:string>SBO</b:string>
<b:string>IBC</b:string>
<b:string>PIN</b:string>
<b:string>SIN</b:string>
</a:Bookies>
<a:Home>Gimnasia y Esgrima</a:Home>
<a:IsLive>1</a:IsLive>
<a:LeagueId>1578895411</a:LeagueId>
<a:LeagueName>ARGENTINA NATIONAL BASKETBALL LEAGUE</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-922869538</a:MatchId>
<a:Since>1475718011406</a:Since>
<a:StartTime>1475712000000</a:StartTime>
<a:StartsOn>10/06/2016 12:00:00.000 AM</a:StartsOn>
</a:EventListEvent>
</a:Events>
<a:SportsType>2</a:SportsType>
</a:EventSportsType>
</a:EventSportsTypes>
</Result>
</ResponseDataOfEventListm5wKUPk0>
Fail <ResponseDataArrayOfSportsTypeJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Data i:nil="true"/>
</ResponseDataArrayOfSportsTypeJ9EWawJt>

4.4. GetFeeds

This method retrieves the feed or odds from the system.

Request
Method URL
GET /AsianOddsService/GetFeeds?sportsType={SportsType}&marketTypeId={marketTypeId}bookies={ALL|List of BookieID}&leagues={ALL|list of leagueId}&oddsFormat={MY|00|HK}&since={since}
Type Params Values
HEAD AOToken string
HEAD Accept application/json or application/xml
GET bookies string
GET sportsType int
GET leagues String
GET oddsFormat String
GET marketTypeId int
GET since long
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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
bookies(optional) List of BookieID separated by comma(,). If you want all bookies, then please use ALL keyword. Note that this is an optional field and without any value means that you have chosen ALL bookies.
sportsType(optional) Type of sports of which leagues to display. If none specified, then by default, footbal will be chosen. SportsType can be retrieved by calling GetSports.
Leagues(optional) List of leagueID separated by comma(,). If you want all leagues, then either leave this empty or use ALL keyword.
oddsFormat(optional) MY by default. Valid values are 00 for European Odds, MY for Malaysian odds, HK for Hongkong Odds
marketTypeId(required) MarketTypeId refers to the type of market. Valid Values are {0,1,2}
0 : Live Market
1 : Today Market
2 : Early Market
If MarketTypeId is not specified, then 0 is the default value.
since(optional) Since is a delta switch. The value expected is a milliseconds since last epoch. When specified, the data returned are only the data that was generated since the value of this. This is normally used to return subset of data that have been updated.
When this parameter is not specified then all of the data will be returned.
Response Values
Value What is this for
Code Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failures.
Since Last Update on this feed in Milliseconds since last epoch
AwayTeam -Name Name of the Away Team
AwayTeam -RedCards Number of Red Cards
AwayTeam -Score Score of the Away Team
ExpectedLength Length of the game in minutes
Favoured Which is the Favourite team.
GameId ID of the Game
FullTimeHDP -BookieOdds Odds for Both Home and Away as well as Best Odds described by Bookie.
FullTimeHDP -Handicap Handicap
FullTimeOU -BookieOdds Odds for Both Over and Under as well as Best Odds described by Bookie.
FullTimeOU -Goal Goal
FullTimeOneXTwo -BookieOdds Odds for Both Home, Away and Draw as well as Best Odds described by Bookie.
HalfTimeHDP -BookieOdds Odds for Both Home and Away as well as Best Odds described by Bookie.
HalfTimeHDP -Handicap Handicap
HalfTimeOU -BookieOdds Odds for Both Over and Under as well as Best Odds described by Bookie.
HalfTimeOU -Goal Goal
HalfTimeOneXTwo -BookieOdds Odds for Both Home, Away and Draw as well as Best Odds described by Bookie.
InGameMinutes In Game Minutes
IsLive 1 if the match is live, 0 if not
MarketType Market Type in text. Values is “Live”, “Today” or “Early”
MarketTypeId The ID of the market. This is 0 for Live, 1 for Today and 2 for early.
StartTime StartTime or Kickoff Time in Milliseconds since last Epoch.
StartsOn A converted date/time string of the StartTime
SportsType SportsType ID
LeagueId League ID
League Name Name of the League
MatchID ID of the Match
WillBeRemoved True or False. True means that the Game has been removed from the Platform and therefore the consumer of the service should remove this from the reply
ToBeRemovedOn The datetime when the game will be removed from this feed in Milliseconds since last epoch. If HasBeenRemoved value is false, then this is -1.
IsActive True or False. True means that you can place a bet on this game, false if otherwise.
UpdatedDateTime Last time this particular match was updated in milliseconds since last epoch
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"Since": 1473254981365,
"Sports": [
{
"MatchGames": [
{
"AwayTeam":
"Name": "Ulinzi Stars",
"RedCards": 0,
"Score": 0,
},
"ExpectedLength": 45,
"Favoured": 0,
"FullTimeHdp": {
"BookieOdds": "SIN=2.260,1.610;BEST=SIN 2.260,SIN 1.610",
"Handicap": "0.0"
},
"FullTimeOneXTwo": {
"BookieOdds": "SIN=2.260,1.610;BEST=SIN 2.260,SIN 1.610"
},
"FullTimeOu": {
"BookieOdds": "SIN=2.260,1.610;BEST=SIN 2.260,SIN 1.610",
"Goal": "0.5"
},
"GameId": 596092034,
"HalfTimeHdp": {
"BookieOdds": "",
"Handicap": ""
},
"HalfTimeOneXTwo": {
"BookieOdds": ""
},
"HalfTimeOu": {
"BookieOdds": "",
"Goal": ""
},
"HomeTeam": {
"Name": "Sony Sugar",
"RedCards": 0,
"Score": 0
},
"InGameMinutes": 139,
"IsActive": true,
"IsLive": 1,
"LeagueId": -155187273,
"LeagueName": "KENYA PREMIER LEAGUE",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -1748022697,
"StartTime": 1473249600000,
"StartsOn": "09/07/2016 12:00:00.000 PM",
"ToBeRemovedOn": -1,
"UpdatedDateTime": 1473254974947,
"WillBeRemoved": false
},
{
"AwayTeam": {
"Name": "Ulinzi Stars",
"RedCards": 0,
"Score": 0
},
"ExpectedLength": 45,
"Favoured": 2,
"FullTimeHdp": {
"BookieOdds": "SIN=1.520,2.420;BEST=SIN 1.520,SIN 2.420",
"Handicap": "0-0.5"
},
"FullTimeOneXTwo": {
"BookieOdds": ""
},
"FullTimeOu": {
"BookieOdds": "SIN=1.520,2.420;BEST=SIN 1.520,SIN 2.420",
"Goal": "0.5-1"
},
"GameId": 214192611,
"HalfTimeHdp": {
"BookieOdds": "",
"Handicap": ""
},
"HalfTimeOneXTwo": {
"BookieOdds": ""
},
"HalfTimeOu": {
"BookieOdds": "",
"Goal": ""
},
"HomeTeam": {
"Name": "Sony Sugar",
"RedCards": 0,
"Score": 0
},
"InGameMinutes": 139,
"IsActive": true,
"IsLive": 1,
"LeagueId": -155187273,
"LeagueName": "KENYA PREMIER LEAGUE",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -1748022697,
"StartTime": 1473249600000,
"StartsOn": "09/07/2016 12:00:00.000 PM",
"ToBeRemovedOn": -1,
"UpdatedDateTime": 1473254974953,
"WillBeRemoved": false
},
{
"AwayTeam": {
"Name": "ECU Joondalup",
"RedCards": 0,
"Score": 2
},
"ExpectedLength": 45,
"Favoured": 0,
"FullTimeHdp": {
"BookieOdds": "SIN=1.720,2.130;BEST=SIN 1.720,SIN 2.130",
"Handicap": "0.0"
},
"FullTimeOneXTwo": {
"BookieOdds": "SIN=1.720,2.130;BEST=SIN 1.720,SIN 2.130"
},
"FullTimeOu": {
"BookieOdds": "SIN=1.720,2.130;BEST=SIN 1.720,SIN 2.130",
"Goal": "3.5"
},
"GameId": -643483232,
"HalfTimeHdp": {
"BookieOdds": "",
"Handicap": ""
},
"HalfTimeOneXTwo": {
"BookieOdds": ""
},
"HalfTimeOu": {
"BookieOdds": "",
"Goal": ""
},
"HomeTeam": {
"Name": "Inglewood United",
"RedCards": 0,
"Score": 0
},
"InGameMinutes": 60,
"IsActive": true,
"IsLive": 1,
"LeagueId": 1350816037,
"LeagueName": "WESTERN AUSTRALIA NATIONAL PREMIER LEAGUE – PLAYOFF",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -1131881881,
"StartTime": 1473251400000,
"StartsOn": "09/07/2016 12:30:00.000 PM",
"ToBeRemovedOn": -1,
"UpdatedDateTime": 1473254980960,
"WillBeRemoved": false
},
{
"AwayTeam": {
"Name": "Russia",
"RedCards": 0,
"Score": 0
},
"ExpectedLength": 45,
"Favoured": 2,
"FullTimeHdp": {
"BookieOdds": "SIN=1.910,1.790;BEST=SIN 1.910,SIN 1.790",
"Handicap": "4.5"
},
"FullTimeOneXTwo": {
"BookieOdds": ""
},
"FullTimeOu": {
"BookieOdds": "SIN=1.910,1.790;BEST=SIN 1.910,SIN 1.790",
"Goal": "9.5"
},
"GameId": -1678831951,
"HalfTimeHdp": {
"BookieOdds": "",
"Handicap": ""
},
"HalfTimeOneXTwo": {
"BookieOdds": ""
},
"HalfTimeOu": {
"BookieOdds": "",
"Goal": ""
},
"HomeTeam": {
"Name": "Moldova",
"RedCards": 0,
"Score": 0
},
"InGameMinutes": 60,
"IsActive": false,
"IsLive": 1,
"LeagueId": -482280716,
"LeagueName": "FIFA BEACH SOCCER WORLD CUP 2017 EUROPE QUALIFICATION (IN ITALY)",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -2063370818,
"StartTime": 1473254100000,
"StartsOn": "09/07/2016 01:15:00.000 PM",
"ToBeRemovedOn": 1473255135286,
"UpdatedDateTime": 1473254835286,
"WillBeRemoved": true
},
{
"AwayTeam": {
"Name": "ECU Joondalup",
"RedCards": 0,
"Score": 2
},
"ExpectedLength": 45,
"Favoured": 1,
"FullTimeHdp": {
"BookieOdds": "SIN=2.060,1.780;BEST=SIN 2.060,SIN 1.780",
"Handicap": "0-0.5"
},
"FullTimeOneXTwo": {
"BookieOdds": ""
},
"FullTimeOu": {
"BookieOdds": "SIN=2.060,1.780;BEST=SIN 2.060,SIN 1.780",
"Goal": "3.5-4"
},
"GameId": -107357070,
"HalfTimeHdp": {
"BookieOdds": "",
"Handicap": ""
},
"HalfTimeOneXTwo": {
"BookieOdds": ""
},
"HalfTimeOu": {
"BookieOdds": "",
"Goal": ""
},
"HomeTeam": {
"Name": "Inglewood United",
"RedCards": 0,
"Score": 0
},
"InGameMinutes": 60,
"IsActive": true,
"IsLive": 1,
"LeagueId": 1350816037,
"LeagueName": "WESTERN AUSTRALIA NATIONAL PREMIER LEAGUE – PLAYOFF",
"MarketType": "Live",
"MarketTypeId": 0,
"MatchId": -1131881881,
"StartTime": 1473251400000,
"StartsOn": "09/07/2016 12:30:00.000 PM",
"ToBeRemovedOn": -1,
"UpdatedDateTime": 1473254981365,
"WillBeRemoved": false
}
],
"SportsType": 1
},
],
},
}
Fail {
"Code": -1,
"Result": null
}
Sample XML Response
Response Type Response
Success <ResponseDataOfFeed8Py0GTqU
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.Feeds">
<a:Since>1476185040265</a:Since>
<a:Sports>
<a:Sport>
<a:MatchGames>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Dong Thap U21</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>2</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>0</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=0.570,-0.770;IBC=0.660,-0.960;BEST=IBC 0.660,ISN -0.770</a:BookieOdds>
<a:Handicap>0.0</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds>ISN=6.77,1.48,3.60;SIN=5.70,1.54,3.10;BEST=ISN 6.77,SIN 1.54,ISN 3.60</a:BookieOdds>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=0.510,-0.710;SIN=0.670,-0.910;BEST=SIN 0.670,ISN -0.710</a:BookieOdds>
<a:Goal>4.0</a:Goal>
</a:FullTimeOu>
<a:GameId>1915062245</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Hung Vuong An Giang U21 (N)</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:HomeTeam>
<a:InGameMinutes>131</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-1733936463</a:LeagueId>
<a:LeagueName>VIETNAM CHAMPIONSHIP U21 QUALIFIERS</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>1778591664</a:MatchId>
<a:StartTime>1476172800000</a:StartTime>
<a:StartsOn>10/11/2016 08:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185038809</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemove
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Dong Thap U21</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>2</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=-0.670,0.470;SIN=-0.780,0.540;BEST=ISN -0.670,SIN 0.540</a:BookieOdds>
<a:Handicap>0.5</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=-0.790,0.590;IBC=-0.920,0.620;BEST=ISN -0.790,IBC 0.620</a:BookieOdds>
<a:Goal>4.5</a:Goal>
</a:FullTimeOu>
<a:GameId>-205707352</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Hung Vuong An Giang U21 (N)</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:HomeTeam>
<a:InGameMinutes>131</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-1733936463</a:LeagueId>
<a:LeagueName>VIETNAM CHAMPIONSHIP U21 QUALIFIERS</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>1778591664</a:MatchId>
<a:StartTime>1476172800000</a:StartTime>
<a:StartsOn>10/11/2016 08:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185038814</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Dong Thap U21</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>2</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=-0.920,0.720;IBC=0.980,0.720;SIN=0.940,0.820;BEST=ISN -0.920,SIN 0.820</a:BookieOdds>
<a:Handicap>0-0.5</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=0.940,0.860;SIN=-0.920,0.680;IBC=0.890,0.810;BEST=SIN -0.920,ISN 0.860</a:BookieOdds>
<a:Goal>4-4.5</a:Goal>
</a:FullTimeOu>
<a:GameId>320569897</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Hung Vuong An Giang U21 (N)</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:HomeTeam>
<a:InGameMinutes>131</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-1733936463</a:LeagueId>
<a:LeagueName>VIETNAM CHAMPIONSHIP U21 QUALIFIERS</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>1778591664</a:MatchId>
<a:StartTime>1476172800000</a:StartTime>
<a:StartsOn>10/11/2016 08:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185038819</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Dong Thap U21</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>2</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>2</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:FullTimeOu>
<a:GameId>-695047515</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds>SIN=-0.440,0.200;BEST=SIN -0.440,SIN 0.200</a:BookieOdds>
<a:Handicap>0-0.5</a:Handicap>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Hung Vuong An Giang U21 (N)</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:HomeTeam>
<a:InGameMinutes>101</a:InGameMinutes>
<a:IsActive>false</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-1733936463</a:LeagueId>
<a:LeagueName>VIETNAM CHAMPIONSHIP U21 QUALIFIERS</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>1778591664</a:MatchId>
<a:StartTime>1476172800000</a:StartTime>
<a:StartsOn>10/11/2016 08:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>1476185338804</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185038804</a:UpdatedDateTime>
<a:WillBeRemoved>true</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>FK Chelyabinsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>2</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=0.810,0.990;IBC=0.820,0.980;BEST=IBC 0.820,ISN 0.990</a:BookieOdds>
<a:Handicap>1.5</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds>ISN=23.60,1.04,10.00;BEST=ISN 23.60,ISN 1.04,ISN 10.00</a:BookieOdds>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>IBC=0.580,-0.780;BEST=IBC 0.580,IBC -0.780</a:BookieOdds>
<a:Goal>3.0</a:Goal>
</a:FullTimeOu>
<a:GameId>-1584815186</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds>IBC=-0.840,0.640;ISN=-0.890,0.690;BEST=IBC -0.840,ISN 0.690</a:BookieOdds>
<a:Handicap>0-0.5</a:Handicap>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds>ISN=36.20,1.04,8.40;BEST=ISN 36.20,ISN 1.04,ISN 8.40</a:BookieOdds>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds>IBC=0.890,0.910;ISN=0.830,0.970;BEST=IBC 0.890,ISN 0.970</a:BookieOdds>
<a:Goal>1.5</a:Goal>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Dinamo Kirov</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>84</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-208733113</a:LeagueId>
<a:LeagueName>RUSSIA 2ND DIVISION</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1382521730</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185040250</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>FK Chelyabinsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>2</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=0.590,-0.790;BEST=ISN 0.590,ISN -0.790</a:BookieOdds>
<a:Handicap>1.5-2</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=-0.980,0.780;BEST=ISN -0.980,ISN 0.780</a:BookieOdds>
<a:Goal>3.5</a:Goal>
</a:FullTimeOu>
<a:GameId>-115317717</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds>IBC=-0.760,0.560;BEST=IBC -0.760,IBC 0.560</a:BookieOdds>
<a:Goal>1.5-2</a:Goal>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Dinamo Kirov</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>84</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-208733113</a:LeagueId>
<a:LeagueName>RUSSIA 2ND DIVISION</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1382521730</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185040255</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>FK Chelyabinsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>2</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>IBC=-0.970,0.770;ISN=-0.920,0.720;BEST=ISN -0.920,IBC 0.770</a:BookieOdds>
<a:Handicap>1-1.5</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=-0.780,0.580;BEST=ISN -0.780,ISN 0.580</a:BookieOdds>
<a:Goal>3.5-4</a:Goal>
</a:FullTimeOu>
<a:GameId>1557324784</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Dinamo Kirov</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>84</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-208733113</a:LeagueId>
<a:LeagueName>RUSSIA 2ND DIVISION</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1382521730</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185040260</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Volga Ulyanovsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=0.680,-0.880;SIN=0.690,-0.880;IBC=0.660,-0.860;BEST=SIN 0.690,IBC -0.860</a:BookieOdds>
<a:Handicap>0.5</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds>SIN=1.69,4.85,3.10;IBC=1.65,5.00,2.91;ISN=1.67,5.20,3.22;BEST=SIN 1.69,ISN 5.20,ISN 3.22</a:BookieOdds>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>SIN=0.650,-0.860;ISN=0.680,-0.880;BEST=ISN 0.680,SIN -0.860</a:BookieOdds>
<a:Goal>1.5-2</a:Goal>
</a:FullTimeOu>
<a:GameId>2012192671</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds>IBC=-0.620,0.420;SIN=-0.670,0.490;BEST=IBC -0.620,SIN 0.490</a:BookieOdds>
<a:Handicap>0.5</a:Handicap>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds>IBC=2.61,6.00,1.67;SIN=2.49,7.70,1.70;ISN=2.88,6.27,1.68;BEST=ISN 2.88,SIN 7.70,SIN 1.70</a:BookieOdds>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds>SIN=0.800,-1.000;IBC=0.820,0.980;ISN=0.930,0.870;BEST=ISN 0.930,SIN -1.000</a:BookieOdds>
<a:Goal>0.5</a:Goal>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>FK Zenit Izhevsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>82</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-814329617</a:LeagueId>
<a:LeagueName>RUSSIA DIVISION 2</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1180674114</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185039472</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Volga Ulyanovsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>IBC=0.910,0.890;SIN=0.920,0.900;ISN=0.940,0.860;BEST=ISN 0.940,SIN 0.900</a:BookieOdds>
<a:Handicap>0.5-1</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=0.950,0.850;SIN=0.980,0.820;BEST=SIN 0.980,ISN 0.850</a:BookieOdds>
<a:Goal>2.0</a:Goal>
</a:FullTimeOu>
<a:GameId>1515192626</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds>IBC=-0.990,0.790;SIN=0.970,0.850;ISN=-0.860,0.660;BEST=ISN -0.860,SIN 0.850</a:BookieOdds>
<a:Handicap>0-0.5</a:Handicap>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds>IBC=-0.770,0.570;SIN=-0.820,0.620;BEST=IBC -0.770,SIN 0.620</a:BookieOdds>
<a:Goal>0.5-1</a:Goal>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>FK Zenit Izhevsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>82</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-814329617</a:LeagueId>
<a:LeagueName>RUSSIA DIVISION 2</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1180674114</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185039477</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Volga Ulyanovsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds>ISN=-0.760,0.560;BEST=ISN -0.760,ISN 0.560</a:BookieOdds>
<a:Handicap>1.0</a:Handicap>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>IBC=-0.680,0.480;BEST=IBC -0.680,IBC 0.480</a:BookieOdds>
<a:Goal>2.5</a:Goal>
</a:FullTimeOu>
<a:GameId>736351252</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>FK Zenit Izhevsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>82</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-814329617</a:LeagueId>
<a:LeagueName>RUSSIA DIVISION 2</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1180674114</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185039482</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>FK Chelyabinsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=0.750,-0.950;IBC=0.890,0.910;BEST=IBC 0.890,ISN -0.950</a:BookieOdds>
<a:Goal>3-3.5</a:Goal>
</a:FullTimeOu>
<a:GameId>1005441805</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds>IBC=-0.260,0.060;BEST=IBC -0.260,IBC 0.060</a:BookieOdds>
<a:Handicap>0.0</a:Handicap>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Dinamo Kirov</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>84</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-208733113</a:LeagueId>
<a:LeagueName>RUSSIA 2ND DIVISION</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1382521730</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185040265</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>Volga Ulyanovsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>0</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds>ISN=-0.760,0.560;IBC=-0.860,0.660;BEST=ISN -0.760,IBC 0.660</a:BookieOdds>
<a:Goal>2-2.5</a:Goal>
</a:FullTimeOu>
<a:GameId>1617298949</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>FK Zenit Izhevsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>82</a:InGameMinutes>
<a:IsActive>true</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-814329617</a:LeagueId>
<a:LeagueName>RUSSIA DIVISION 2</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1180674114</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>-1</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185039487</a:UpdatedDateTime>
<a:WillBeRemoved>false</a:WillBeRemoved>
</a:MatchGame>
<a:MatchGame>
<a:AwayTeam>
<a:Name>FK Chelyabinsk</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>1</a:Score>
</a:AwayTeam>
<a:ExpectedLength>45</a:ExpectedLength>
<a:Favoured>1</a:Favoured>
<a:FullTimeHdp>
<a:BookieOdds/>
<a:Handicap/>
</a:FullTimeHdp>
<a:FullTimeOneXTwo>
<a:BookieOdds/>
</a:FullTimeOneXTwo>
<a:FullTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:FullTimeOu>
<a:GameId>-2142116835</a:GameId>
<a:HalfTimeHdp>
<a:BookieOdds>IBC=0.920,0.880;BEST=IBC 0.920,IBC 0.880</a:BookieOdds>
<a:Handicap>0-0.5</a:Handicap>
</a:HalfTimeHdp>
<a:HalfTimeOneXTwo>
<a:BookieOdds/>
</a:HalfTimeOneXTwo>
<a:HalfTimeOu>
<a:BookieOdds/>
<a:Goal/>
</a:HalfTimeOu>
<a:HomeTeam>
<a:Name>Dinamo Kirov</a:Name>
<a:RedCards>0</a:RedCards>
<a:Score>0</a:Score>
</a:HomeTeam>
<a:InGameMinutes>83</a:InGameMinutes>
<a:IsActive>false</a:IsActive>
<a:IsLive>1</a:IsLive>
<a:LeagueId>-208733113</a:LeagueId>
<a:LeagueName>RUSSIA 2ND DIVISION</a:LeagueName>
<a:MarketType>Live</a:MarketType>
<a:MarketTypeId>0</a:MarketTypeId>
<a:MatchId>-1382521730</a:MatchId>
<a:StartTime>1476183600000</a:StartTime>
<a:StartsOn>10/11/2016 11:00:00.000 AM</a:StartsOn>
<a:ToBeRemovedOn>1476185340245</a:ToBeRemovedOn>
<a:UpdatedDateTime>1476185040245</a:UpdatedDateTime>
<a:WillBeRemoved>true</a:WillBeRemoved>
</a:MatchGame>
</a:MatchGames>
<a:SportsType>1</a:SportsType>
</a:Sport>
</a:Sports>
</Result>
</ResponseDataOfFeed8Py0GTqU>
Fail <ResponseDataOfFeed8Py0GTqU
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result i:nil="true"xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.Feeds"/>
</ResponseDataOfFeed8Py0GTqU>

4.4.1.Reading BookieOdds

BookieOdds from GetFeeds are delimited by (;) to separate each bookie’s odds. Each odds are separated by (,) to determine which odds is represented on which game.

For example :
“FullTimeHdp”: {
“BookieOdds”: “GA=1.810,2.120;PIN=1.847,2.080;BEST=PIN 1.847,GA 2.120”,
“Handicap”: “1.0”
}
The above means that the odds are for GA and PIN, of which the Best Odds are also shown.
The below are the tables how to interpret HDP, OU and 1X2 Odds in a matchgame.
Sample HDP Odd in Feed :
“FullTimeHdp”: {
“BookieOdds”: “GA=1.810,2.120;PIN=1.847,2.080;BEST=PIN 1.847,GA 2.120”,
“Handicap”: “1.0”
}

Sample XML Response
Bookie GameType Odds
GA Home 1.810
GA Away 2.120
PIN Home 1.847
PIN Away 2.080
Best Odds (PIN) Home 1.847
Best Odds (GA) Away 2.120

Sample OU Odds in Feed :
“FullTimeOu”: {
“BookieOdds”: “SIN=1.840,2.060;SBO=1.890,2.040;BEST=SBO 1.890,SIN 2.060”,
“Goal”: “3.5-4”
}

Sample XML Response
Bookie GameType Odds
SIN Home 1.840
SIN Away 2.060
SBO Home 1.890
SIN Away 2.040
Best Odds (SBO) Home 1.890
Best Odds(SIN) Away 2.060

Sample 1×2 in Feed :
“FullTimeOneXTwo”: {
“BookieOdds”: “PIN=2.930,2.830,3.000;BEST=PIN 2.930,PIN 2.830,PIN 3.000”
}

Sample XML Response
Bookie GameType Odds
PIN Home 2.930
PIN Away 2.830
PIN Draw 3.000
Best Odds (PIN) Home 2.930
Best Odds (SBO) Away 2.830
Best Odds (SIN) Draw 3.000

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.

Request
Method URL
POST /AsianOddsService/GetPlacementInfo
REQUEST BODY {
"GameId":{gameId from feed},
"GameType":"{H|O|X}",
"IsFullTime":{1|0},
"Bookies":"SIN,GA,..",
“MarketTypeId”:{0,1,2},
"OddsFormat":"{MY|00|HK}",
"OddsName":"{oddsName}",
"SportsType":{sportsType}
}
Type Params Values
HEAD AOToken string
HEAD Accept application/json or application/xml
GET matchId string
GET isFullTime int
GET gameId long
GET gameType string
GET oddsName String
GET oddsFormat string
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 determines what type of output the client expects. It’s either JSON or XML.
matchId MatchID from the GetFeeds. Pertains to the match where the bet will be placed.
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.
H is for HDP
O is for OverUnder
X is for 1X2 game
oddsName Where the bets will be placed. Here are the valid values :
If GameType is H then :
● AwayOdds -Value of the AwayOdds from Feed under HDP
● HomeOdds -Value of Home Odds from Feed under HDP
If GameType is O then
● OverOdds -Value of OverOdds from Feed
● UnderOdds -Value of UnderOdds from Feed
If GameType is X then
● AwayOdds -Value of AwayOdds from Feed under OneXTwos
● DrawOdds -Value of DrawOdds from Feed under OneXTwos
● HomeOdds -Value of HomeOdds from Feed under OneXTwos
oddsId ID of the Odds. Value is :
If GameType is H then ID under HDP
If GameType is O then ID under OU
If Gametype is X then ID under OneXTwos
oddsFormat(optional) Format of Odds. Valid Value is :
MY
00
HK
If empty, then the default OddsFormat under GetUserInformation will be used.
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 {
"Code": 0,
"Result": {
"OddsPlacementData": [
{
"AwayName": "Dong Thap U21",
"AwayScore": 0,
"Bookie": "ISN",
"Currency": "EUR",
"GameType": "H",
"HDPorGoal": "0.0",
"HomeName": "Hung Vuong An Giang U21 (N)",
"HomeOrAwayOrDraw": "H",
"HomeScore": 0,
"IsFullTime": true,
"LeagueName": "VIETNAM CHAMPIONSHIP U21 QUALIFIERS",
"MarketTypeId": 0,
"MaximumAmount": 133,
"Message": null,
"MinimumAmount": 3,
"OddPlacementId": "1476185140619",
"OddsFormat": null,
"Price": -0.81,
"Rejected": false,
"SportsType": 1
},
{
"AwayName": "Dong Thap U21",
"AwayScore": 0,
"Bookie": "IBC",
"Currency": "EUR",
"GameType": "H",
"HDPorGoal": "0.0",
"HomeName": "Hung Vuong An Giang U21 (N)",
"HomeOrAwayOrDraw": "H",
"HomeScore": 0,
"IsFullTime": true,
"LeagueName": "VIETNAM CHAMPIONSHIP U21 QUALIFIERS",
"MarketTypeId": 0,
"MaximumAmount": 169,
"Message": null,
"MinimumAmount": 2,
"OddPlacementId": "1476185140619",
"OddsFormat": "MY",
"Price": 0.65,
"Rejected": false,
"SportsType": 1
}
]
}
}
Fail {
"Code": -1,
"Result": {
"AwayName": null,
"AwayScore": 0,
"Bookie": null,
"Curency": null,
"GameType": null,
"HDPorGoal": null,
"HomeName": null,
"HomeOrAwayOrDraw": null,
"HomeScore": 0,
"IsFullTime": false,
"LeagueName": null,
"MarketTypeId": 0,
"MaximumAmount": 0,
"Message": null,
"MinimumAmount": 0,
"OddPlacementId": null,
"OddsFormat": null,
"Price": 0,
"Rejected": false,
"SportsType": 0
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfOddsPlacementDataJ9EWawJt xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<AwayName>Londrina</AwayName>
<AwayScore>0</AwayScore>
<Bookie>SBO</Bookie>
<Curency>EUR</Curency>
<GameType>H</GameType>
<HDPorGoal>0.5-1</HDPorGoal>
<HomeName>Atletico Goianiense</HomeName>
<HomeOrAwayOrDraw>A</HomeOrAwayOrDraw>
<HomeScore>0</HomeScore>
<IsFullTime>true</IsFullTime>
<LeagueName>BRAZIL SERIE B</LeagueName>
<MarketTypeId>1</MarketTypeId>
<MaximumAmount>572</MaximumAmount>
<Message i:nil="true"/>
<MinimumAmount>5</MinimumAmount>
<OddPlacementId>1468317298962</OddPlacementId>
<OddsFormat>MY</OddsFormat>
<Price>0.85</Price>
<Rejected>false</Rejected>
<SportsType>1</SportsType>
</Result>
</ResponseDataOfOddsPlacementDataJ9EWawJt>
Fail <ResponseDataOfOddsPlacementDataJ9EWawJt xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<AwayName i:nil="true"/>
<AwayScore>0</AwayScore>
<Bookie i:nil="true"/>
<Curency i:nil="true"/>
<GameType i:nil="true"/>
<HDPorGoal i:nil="true"/>
<HomeName i:nil="true"/>
<HomeOrAwayOrDraw i:nil="true"/>
<HomeScore>0</HomeScore>
<IsFullTime>false</IsFullTime>
<LeagueName i:nil="true"/>
<MarketTypeId>0</MarketTypeId>
<MaximumAmount>0</MaximumAmount>
<Message i:nil="true"/>
<MinimumAmount>0</MinimumAmount>
<OddPlacementId i:nil="true"/>
<OddsFormat i:nil="true"/>
<Price>0</Price>
<Rejected>false</Rejected>
<SportsType>0</SportsType>
</Result>
</ResponseDataOfOddsPlacementDataJ9EWawJt>
Sample Procedure of executing GetPlacementInfo

In this example, lets use PostMan which is a plugin from Chrome. You could use this to do a test on our API.

The assumption here is that we are currently logged in and registered to the API. We wanted to place a bet on a match in Today Market.

GetPlacementInfo is normally called before you place a bet. Reason is that this gives you information that you can use before you place a bet. Example, the Minimum Amount, or Maximum Amount, the current scores, and the price that can be used.

To help the user identify what parameter is to be sent, first we get the odds :

Sample Procedure of executing GetPlacementInfo

In this example, lets use PostMan which is a plugin from Chrome. You could use this to do a test on our API.

The assumption here is that we are currently logged in and registered to the API. We wanted to place a bet on a match in Today Market.

GetPlacementInfo is normally called before you place a bet. Reason is that this gives you information that you can use before you place a bet. Example, the Minimum Amount, or Maximum Amount, the current scores, and the price that can be used.

To help the user identify what parameter is to be sent, first we get the odds :

asianod_img

The Parameter to send a GetPlacementInfo is :

{
“GameId”:{gameId from feed},
“GameType”:”{H|O|X}”,
“IsFullTime”:{1|0},
“Bookies”:”SIN,GA,..”,
“MarketTypeId”:{0,1,2},
“OddsFormat”:”{MY|00|HK}”,
“OddsName”:”{oddsName}”,
“SportsType”:{sportsType}
}

So what we need to do is use this as an HTTP Post and send to GetPlacementInfo
The data to be submitted are retrieved as shown below :

<h5>GameID</h5>

asianod_img_02
GameType

Type of game where the bets will place.
H is for HDP
O is for OverUnder
X is for 1X2 game

You will know the type of game by the identification such as shown below:

FullTimeHDP or HalfTimeHDP for HDP
FullTimeOu or HalftimeOu for Over/Under
FullTimeOneXTwo or HalfTimeOneXTwo for 1X2

Example:

asianod_example
IsFullTime

Determines if you want to bet a FullTime or HalfTime Game.

In an example, if we want to choose a FullTimeHDP then we will put the GameType as H and IsFullTime as 1. This will choose the FullTimeHDP.

For Halftime with GameType of Over/Under then we will use GameType as O and IsFullTime as 0

Bookies

If you want to only place a bet on a specific bookie and before placing a bet , you want to get the information for that specific bookie, you fill this in with what bookie you want to target. You can specify multiple bookies and is separated with ,. If you want all bookies, then just don’t pass this parameter as part of the JSON.

The available bookies are identified as example below on BookieOdds :

asianod_bookiodds
MarketTypeID

You specify the Market you want to get the info from. This is 0 for live, 1 for today and 2 for early.

OddsFormat

Valid odds format are : MY for Malaysian Odds, 00 For Decima/Eurol, or HK for Hong Kong odds

OddsName

This specify if you want to place a bet for Home and Away for HDP, Over or Under for OU or Home, Away or Draw.

SportsType

1 for Football, 2 for Basketball.

Example

We added a Body for the request with this value :

{
“GameId”:1114634687,
“GameType”:”H”,
“IsFullTime”:1,
“MarketTypeId”:1,
“OddsFormat”:”MY”,
“OddsName”:”HomeOdds”,
“SportsType”:1,
“Bookies”:”ISN”
}

Once submitted, we got this reply

{
“Code”: 0,
“Result”: {
“OddsPlacementData”: [
{
“AwayName”: “Ceara CE”,
“AwayScore”: 0,
“Bookie”: “ISN”,
“Currency”: “EUR”,
“GameType”: “H”,
“HDPorGoal”: “0.0”,
“HomeName”: “Criciuma SC”,
“HomeOrAwayOrDraw”: “H”,
“HomeScore”: 0,
“IsFullTime”: true,
“LeagueName”: “BRAZIL SERIE B”,
“MarketTypeId”: 1,
“MaximumAmount”: 1331,
“Message”: null,
“MinimumAmount”: 10,
“OddPlacementId”: “1478584321053”,
“OddsFormat”: null,
“Price”: 0.6,
“Rejected”: false,
“SportsType”: 1
}
]
}
}

4.6.PlaceBet

This method places a single bet to the book

Request
Method URL
POST /AsianOddsService/PlaceBet
JSON REQUEST BODY {
"PlaceBetId":"{uniqueID (optional)}",
"GameId":{gameId from feed},
"GameType":"{H|O|X}",
"IsFullTime":{1|0},
“MarketTypeId”:{0,1,2},
"OddsFormat":"{MY|00|HK}",
"OddsName":"{oddsName}",
"SportsType":{sportsType},
"AcceptChangedOdds":{1|0},
"BookieOdds":"ISN:-0.84,SBO:-0.75,..",
"Amount":5
}
Type Params Values
HEAD AOToken string
HEAD Accept application/json or application/xml
POST isFullTime int
POST MarketTypeId int
POST PlaceBetId  string
POST gameId long
POST gameType string
POST oddsName string
POST oddsFormat string
POST BookieOdds string
POST AcceptChangeOdds 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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
isFullTime 1 if fulltime, 0 if not
MarketTypeId 1 for Football, 2 for Basketball
PlaceBetId (Optional) PlaceBetId is optional and should be no more than 40 characters in length. Whenever provided, this will be considered an identifier to your bet. This is returned as BetPlacementReference under GetBets or GetBetByReference.
gameId GameID from the GetFeeds. Pertains to the Id from the game.
gameType Type of game where the bets will place.
H is for HDP
O is for OverUnder
X is for 1X2 game
oddsName Where the bets will be placed. Here are the valid values :
If GameType is H then :
● AwayOdds -Value of the AwayOdds from Feed under HDP
● HomeOdds -Value of Home Odds from Feed under HDP
If GameType is O then
● OverOdds -Value of OverOdds from Feed
● UnderOdds -Value of UnderOdds from Feed
If GameType is X then
● AwayOdds -Value of AwayOdds from Feed under OneXTwos
● DrawOdds -Value of DrawOdds from Feed under OneXTwos
● HomeOdds -Value of HomeOdds from Feed under OneXTwos
oddsFormat (Optional) Format of Odds. Valid Values are :
MY
00
HK
If empty, then the defaultOddsFormat under GetUserInformation will be used.
acceptChangedOdds 1 if true (meaning that lower odds will be automatically accepted) or 0 if false (reject if the odds became lower). If the odds has changed to better/higher, then the bet will be placed regardless of the value of AcceptChangedOdds.
Amount Amount to be placed.
BookieOdds Specifies what type of odds you are placing the bet. The value of the odds is the same what you get from GetFeeds or GetPlacementInfo. For different books, they are to be separated by comma.
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"BetPlacementReference": "MTpTQk86QVRMRVRJQ08gR09JQU5JRU5TRTpMT05EUklOQTpCUkFaSUwgU0VSSUUgQjowLjg4OjU=",
"Message": "Bet has been placed. Check GetBets() or GetRunningBets() to receive the status of the bet using the BetPlacementReference"
}
}
NOTE : BetPlacementReference is an identifier that allows the developers to check the status via GetBets or GetBetsByReference Method.A similar betplacementreference will be issued on the same ticket that was processed by the Bookie.
Fail {
"Code": -1,
"Result": {
"PlacementData": null
}
}
Sample XML Response
Response Type Response
Success <ResponseDataOfOddsPlacementDataJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result>
<AwayName>Londrina</AwayName>
<AwayScore>0</AwayScore>
<Bookie>SBO</Bookie>
<Curency>EUR</Curency>
<GameType>H</GameType>
<HDPorGoal>0.5-1</HDPorGoal>
<HomeName>Atletico Goianiense</HomeName>
<HomeOrAwayOrDraw>A</HomeOrAwayOrDraw>
<HomeScore>0</HomeScore>
<IsFullTime>true</IsFullTime>
<LeagueName>BRAZIL SERIE B</LeagueName>
<MarketTypeId>1</MarketTypeId>
<MaximumAmount>572</MaximumAmount>
<Message i:nil="true"/>
<MinimumAmount>5</MinimumAmount>
<OddPlacementId>1468317298962</OddPlacementId>
<OddsFormat>MY</OddsFormat>
<Price>0.85</Price>
<Rejected>false</Rejected>
<SportsType>1</SportsType>
</Result>
</ResponseDataOfOddsPlacementDataJ9EWawJt>
Fail <ResponseDataOfOddsPlacementDataJ9EWawJt
xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result>
<AwayName i:nil="true"/>
<AwayScore>0</AwayScore>
<Bookie i:nil="true"/>
<Curency i:nil="true"/>
<GameType i:nil="true"/>
<HDPorGoal i:nil="true"/>
<HomeName i:nil="true"/>
<HomeOrAwayOrDraw i:nil="true"/>
<HomeScore>0</HomeScore>
<IsFullTime>false</IsFullTime>
<LeagueName i:nil="true"/>
<MarketTypeId>0</MarketTypeId>
<MaximumAmount>0</MaximumAmount>
<Message i:nil="true"/>
<MinimumAmount>0</MinimumAmount>
<OddPlacementId i:nil="true"/>
<OddsFormat i:nil="true"/>
<Price>0</Price>
<Rejected>false</Rejected>
<SportsType>0</SportsType>
</Result>
</ResponseDataOfOddsPlacementDataJ9EWawJt>
Sample Procedure of executing PlaceBet

Most of the parameters are the same here except for additional parameters :

PlaceBetId

PlaceBetId, (Optional) When provided, the bet(s) will be tagged using this PlaceBetId. If you have placed bets on multiple bookie on a single go, then all of this bets will be tagged with the PlaceBetId. PlaceBetID is prefixed with character “WA-“.

AcceptChangeOdds

This specify that upon betting and the odds has changed, the system will still bet even if there is a change on odds. Valid value is 1 for true, 0 if otherwise.

Amount

This is the amount to be placed. Note that any amount greater than the Maximum Amount as specified by the return of GetPlacementInfo or less than the minimum amount will most likely return a failure.

BookieOdds

Instead of using Bookies, we now use BookieOdds. BookieOdds are a combination of Bookie with the Odds retrieved from either GetFeeds or GetPlacementInfo.

 

I placed the bet with this parameter. (Highlighted are additional or changed parameters)

{
“AcceptChangedOdds”:1,
“Amount”:10,
“GameId”:1114634687,
“GameType”:”H”,
“IsFullTime”:1,
“MarketTypeId”:1,
“OddsFormat”:”MY”,
“OddsName”:”HomeOdds”,
“SportsType”:1,
“BookieOdds”:”ISN:-0.84″,
}

The reply we got is this :

{
“Code”: 0,
“Result”: {
“PlacementData”: [
{
“BetPlacementReference”: “MTpJU046Q1JJQ0lVTUEgU0M6Q0VBUkEgQ0U6QlJBWklMIFNFUklFIEI6MC42”,
“Bookie”: “ISN”,
“Message”: “Bet has been placed for this bookie. Check GetBets or GetRunningBets to receive the status of the bet using the BetPlacementReference as the reference ID”
}
]
}
}

You can then use GetBetByReference to get the result of the placed bet.

4.7. GetMarketCount

This retrieves the number of matches per market per sports

Request
Method URL
GET /AsianOddsService/GetMarketCount?sportsType={SportsType}&marketTypeId={marketTypeId}
Type Params Values
HEAD AOToken string
HEAD Accept application/json or application/xml
GET sportsType Int
GET marketTypeId 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 to be sent for all of the request except during execution of the Login method
accept determines what type of output the client expects. It’s either JSON or XML.
sportsType (optional) Type of sports of which leagues to display. If none specified, then by default all will be shown. SportsType can be retrieved by calling GetSports.
marketTypeId (optional) MarketTypeId refers to the type of market. Valid Values are {0,1,2}
0 : Live Market
1 : Today Market
2 : Early Market
Response Values
Value What is this for
Code Holds the status of the response. If it’s 0, then it is successful. Negative values indicate failure
SportsType Sports type
MarketTypeId MarketType of the League where it is part of. Value can be any of the below :
0 -Live Market
1 -Today market
2 -Early Market
MatchCount Count of Matches
Sample JSON Response
Response Type Response
Success {
"Code": 0,
"Result": {
"Sports": [
{
"MatchMarket": [
{
"MarketTypeId": 2,
"MatchCount": 22
}
],
"SportsType": 1
}
]
}
}
Fail {
"Code": -1,
"Result": null
}
Sample XML Response
Response Type Response
Success <ResponseDataOfMarketCountUH_PZdaFj xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>0</Code>
<Result xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.MarketCount">
<a:Sports>
<MatchMarketSports>
<MatchMarket>
<a:MatchMarketCount>
<a:MarketTypeId>2</a:MarketTypeId>
<a:MatchCount>22</a:MatchCount>
</a:MatchMarketCount>
</MatchMarket>
<SportsType>1</SportsType>
</MatchMarketSports>
</a:Sports>
</Result>
</ResponseDataOfMarketCountUH_PZdaFj>
Fail <ResponseDataOfMarketCountUH_PZdaFj xmlns="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>-1</Code>
<Result i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/AsianOdds.APIObjects.MarketCount"/>
</ResponseDataOfMarketCountUH_PZdaFj>
Suggest Edit