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.

 

Request

Method

URL

Method

URL

GET

/AsianOddsService/GetRunningBets

Type

Params

Values

Type

Params

Values

HEADER

AOToken

string

HEADER

accept

application/json

 

Request Values

Value

What is this for

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

 

Response Values

Value

What is this for

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

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": []
}