I am randomly getting some of the data missing from the response. At the same time demo tool returns them for the same calls.
Here is an example call:
It does not return event type name and market name:
Then the next call for another market:
and event type name and market name are available:
Here is an example call:
Code:
{
"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/listMarketCatalogue",
"params": {
"filter": {
"eventIds": [
"32930421"
]
},
"marketProjection": [
"COMPETITION",
"EVENT_TYPE",
"RUNNER_DESCRIPTION",
"MARKET_DESCRIPTION"
],
"maxResults": "1000"
}
}
Code:
{
"jsonrpc": "2.0",
"result": [
{
"marketId": "1.223424159",
"description": {
"persistenceEnabled": true,
"bspMarket": false,
"marketTime": "2024-01-11T19:00:00.000Z",
"suspendTime": "2024-01-11T19:00:00.000Z",
"bettingType": "ODDS",
"turnInPlayEnabled": true,
"marketType": "TEAM_B_1",
"regulator": "MALTA LOTTERIES AND GAMBLING AUTHORITY",
"marketBaseRate": 2.0,
"discountAllowed": false,
"wallet": "UK wallet",
"rules": "<!--Football - Team +1/2/3 --><br>Who will win this match with the stated handicap applied? <br> All bets apply to Full Time according to the match officials, plus any stoppage time. Extra-time/penalty shoot-outs are not included.<br><br></b>For further information please see <a href=http://content.betfair.com/aboutus/content.asp?sWhichKey=Rules%20and%20Regulations#undefined.do style=color:0163ad; text-decoration: underline; target=_blank>Rules & Regs<br><br>\n",
"rulesHasDate": true,
"priceLadderDescription": {
"type": "CLASSIC"
}
},
"totalMatched": 0.0,
"runners": [
{
"selectionId": 28630606,
"runnerName": "Fram Reykavik (W) +1",
"handicap": 0.0,
"sortPriority": 1
},
{
"selectionId": 7273633,
"runnerName": "IR Reykjavik (W) -1",
"handicap": 0.0,
"sortPriority": 2
},
{
"selectionId": 151478,
"runnerName": "Draw",
"handicap": 0.0,
"sortPriority": 3
}
],
"eventType": {
"id": "1"
},
"competition": {
"id": "12281061"
}
}
Code:
{
"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/listMarketCatalogue",
"params": {
"filter": {
"eventIds": [
"32929458"
]
},
"marketProjection": [
"COMPETITION",
"EVENT_TYPE",
"RUNNER_DESCRIPTION",
"MARKET_DESCRIPTION"
],
"maxResults": "1000"
}
}
Code:
{
"jsonrpc": "2.0",
"result": [
{
"marketId": "1.223409332",
"marketName": "Over/Under 8.5 Goals",
"description": {
"persistenceEnabled": true,
"bspMarket": false,
"marketTime": "2024-01-11T17:00:00.000Z",
"suspendTime": "2024-01-11T17:00:00.000Z",
"bettingType": "ODDS",
"turnInPlayEnabled": true,
"marketType": "OVER_UNDER_85",
"regulator": "MALTA LOTTERIES AND GAMBLING AUTHORITY",
"marketBaseRate": 2.0,
"discountAllowed": false,
"wallet": "UK wallet",
"rules": "<!--Football - Over/Unders --><br>How many goals will be scored in this match.<br> All bets apply to Full Time according to the match officials, plus any stoppage time. Extra-time/penalty shoot-outs are not included.<br><br></b>For further information please see <a href=http://content.betfair.com/aboutus/content.asp?sWhichKey=Rules%20and%20Regulations#undefined.do style=color:0163ad; text-decoration: underline; target=_blank>Rules & Regs<br><br>\n",
"rulesHasDate": true,
"priceLadderDescription": {
"type": "CLASSIC"
}
},
"totalMatched": 0.0,
"runners": [
{
"selectionId": 2407528,
"runnerName": "Under 8.5 Goals",
"handicap": 0.0,
"sortPriority": 1
},
{
"selectionId": 2407529,
"runnerName": "Over 8.5 Goals",
"handicap": 0.0,
"sortPriority": 2
}
],
"eventType": {
"id": "1",
"name": "Soccer"
},
"competition": {
"id": "2609677",
"name": "Moroccan Botola Pro 1"
}
},


Comment