3.5. GetBetHistorySummary
Retrieves the detailed betting statement for a particular book and particular date. This can be used for your accounting purposes.
Request
Method | URL |
---|---|
GET | /AsianOddsService/GetBetHistorySummary?date={mm/dd/yyyy}&bookies={listofbookies} |
Type | Params | Values |
---|---|---|
HEADER | AOToken | string |
HEADER | accept | application/json |
QUERY STRING | date | String in mm/dd/yyyy format |
QUERY STRING | bookies (optional) | String list of bookies separated by comma. Leave this blank if you want to specify for all bookies. |
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 | application/json |
date | specifies a single date of which the statement will be retrieved. |
bookies (optional) | List of bookies. Bookies here are the Bookie ID retrieved from GetBookies method. Multiple bookies has to be separated by comma. If this is empty, then statements will be retrieved for all bookies. |
Sample Request URL
/AsianOddsService/GetBetHisotry?date=04/19/2016&bookies=IBC,SBO,SIN,PIN,ISN,GA
Response Values
Value | What is this for |
---|---|
AwayName | Name of the Away Team |
AwayScore | Score of the Away Team. |
BetPlacementMessage | Message when the bet was placed. |
BetPlacementReference | Reference of the PlacedBet |
BetType | Either HDP Home, HDP Away, Over, Under, 1,X or 2. |
Bookie | Bookie where the bet was placed. |
FullTimeFavoured | Favoured team on Fulltime game |
HalfTimeFavoured | Favoured team on Halftime game |
FullTimeAwayScore | Score of the Away Team on FullTime |
FullTimeHomeScore | Score of the Home Team on FullTime |
GameType | Type of Game. Can be 1×2,Handicap or OverUnder |
HalfTimeAwayScore | Score of the Away Team on HalfTime |
HalfTimeHomeScore | Score of the Home Team on HalfTime |
HdpOrGoal | HDP or Goal |
HomeName | Name of the HomeTeam |
HomeScore | Score of the HomeTeam |
InternalReferenceNumber | Reference Number of the Bet |
KickoffTime | Kickofftime in Milliseconds since last epoch |
LeagueName | Name of the League |
Odds | Odds of the bet |
OddsType | Type of Odds. Can be MY for Malay, 00 for Euro or HK for HongKong |
Pnl | Profit and Loss of this bet. |
PnlInfo | Identifies the PNL Status of this bet |
SportsType | Specifies which sportstype this bet was placed. This can be 1 for Football or 2 for Basketball |
Stake | Amount that was placed |
Status | Status of the bet. This can be : "R" = "TICKETING" , "S" = "SENDING", "0" ="WAITING", "1" = "RUNNING", "2" = "DONE","8" = "REJECTED","E" = "ERROR","V" = "VOID","U" = "UNKNOWN" |
Term | FT for Fulltime , HT for Halftime |
TicketDate | Date the bet was placed in milliseconds since last epoch |
SubTotalCommision | Commision SubTotal |
SubTotalProfitAndLoss | Profit And Loss SubTotal |
Total | Total Profit and Lostt |
Sample JSON Response
Response Type | Response |
---|---|
Success | { |
Fail | { |