Hi, there.
I'm getting an empty response when I make a listClearedOrders call with betIds as the defining parameters.
Here's my python code snippet using requests.
req = '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listClearedOrders", "params": {"betStatus": "SETTLED","betIds":["199353664037","250080027237"], "groupBy":"MARKET", "side":"BACK"}, "id": 1}'
headers = {'X-Application': bot2_app_key, 'X-Authentication': ssoid, 'content-type': 'application/json'}
req = requests.post(bet_url, data=req.encode('utf-8'), headers=headers)
resp = req.json()
print(resp)
Here's the response I get on making this call.
{'jsonrpc': '2.0', 'result': {'clearedOrders': [], 'moreAvailable': False}, 'id': 1}
Please what am I doing wrong here? Do I need to add some other parameter?
Any help will be appreciated alot.
I'm getting an empty response when I make a listClearedOrders call with betIds as the defining parameters.
Here's my python code snippet using requests.
req = '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listClearedOrders", "params": {"betStatus": "SETTLED","betIds":["199353664037","250080027237"], "groupBy":"MARKET", "side":"BACK"}, "id": 1}'
headers = {'X-Application': bot2_app_key, 'X-Authentication': ssoid, 'content-type': 'application/json'}
req = requests.post(bet_url, data=req.encode('utf-8'), headers=headers)
resp = req.json()
print(resp)
Here's the response I get on making this call.
{'jsonrpc': '2.0', 'result': {'clearedOrders': [], 'moreAvailable': False}, 'id': 1}
Please what am I doing wrong here? Do I need to add some other parameter?
Any help will be appreciated alot.


Sorry for the dumb suggestion.
Comment