For specific markets/bettingTypes (e.g. marketTypes ASIAN_HANDICAP_DOUBLE_LINE, ASIAN_HANDICAP_SINGLE_LINE) you need to include the relevant selections handicap value in the placeOrders request along with the selectionId
The handicap value is returned in the listMarketCatalogue request as show in the below example
Request
[{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketCatalogue", "params": {"filter":{"eventTypeIds":["4"],"marketBettingTypes":["ASIAN_HANDICAP_SINGLE_LINE"]},"maxResults":"2","marketProjection":["RUNNER_DESCRIPTION"]}, "id": 1}]
Response
[{"jsonrpc":"2.0","result":[{"marketId":"1.144476999","marketName":"England 1st Inns Runs","totalMatched":330289.3,"runners":[{"selectionId":269471,"runnerName":"100 Runs or more","handicap":-100.0,"sortPriority":1},{"selectionId":307109,"runnerName":"125 Runs or more","handicap":-125.0,"sortPriority":2},{"selectionId":266617,"runnerName":"150 Runs or more","handicap":-150.0,"sortPriority":3},{"selectionId":269569,"runnerName":"175 Runs or more","handicap":-175.0,"sortPriority":4},{"selectionId":266618,"runnerName":"200 Runs or more","handicap":-200.0,"sortPriority":5},{"selectionId":269570,"runnerName":"225 Runs or more","handicap":-225.0,"sortPriority":6},{"selectionId":266619,"runnerName":"250 Runs or more","handicap":-250.0,"sortPriority":7},{"selectionId":269571,"runnerName":"275 Runs or more","handicap":-275.0,"sortPriority":8},{"selectionId":266620,"runnerName":"300 Runs or more","handicap":-300.0,"sortPriority":9},{"selectionId":288792,"runnerName":"325 Runs or more","handicap":-325.0,"sortPriority":10},{"selectionId":266621,"runnerName":"350 Runs or more","handicap":-350.0,"sortPriority":11}
The valid placeOrders request in this case would be as follows:
Request data:
[{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/placeOrders", "params": {"marketId":"1.144476999","instructions":[{"selectionId":"307109","handicap":"-125.0","side":"BACK","orderType":"LIMIT","limitOrder":{"size":"2","price":"100"}}]}, "id": 1}]
Comments
0 comments
Article is closed for comments.