Getting Empty Results on listClearedOrders method call

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Samstix636
    Junior Member
    • Oct 2021
    • 4

    #1

    Getting Empty Results on listClearedOrders method call

    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.

  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Hi

    At a quick glance I cant spot anything wrong there that jumps out at me. They didnt happen to be 2 lay bets did they ? Sorry for the dumb suggestion.

    To make progress on this, try firstly dropping the Side:BACK part and see if that gets you some results back ?
    If that gives you no result either then try dropping the betIds array from the sent request.

    Had another thought on this, the Spec. does not say that the fromRecord and RecordCount fields are optional.(you havent specified those). Try adding both of those fields and setting them both to zero.


    Regards
    Last edited by geoffw123; 10-11-2021, 08:03 PM.

    Comment

    Working...
    X