4.7. GetMarketCount

This retrieves the number of matches per market per sports


Request

Method

URL

Method

URL

GET

/AsianOddsService/GetMarketCount?sportsType={SportsType}&marketTypeId={marketTypeId}

Type

Params

Values

Type

Params

Values

HEAD

AOToken

string

HEAD

Accept

application/json

GET

sportsType

Int

GET

marketTypeId

Int

 

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

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

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

Response Type

Response

Success

{
"Code": 0,
"Result": {
"Sports": [
{
"MatchMarket": [
{
"MarketTypeId": 2,
"MatchCount": 22
}
],
"SportsType": 1
}
]
}
}

Fail

{
"Code": -1,
"Result": null
}

Related pages