Empty response from listCurrentOrders and listClearedOrders (api 1.0-DELAY)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zia
    Junior Member
    • Feb 2019
    • 2

    #1

    Empty response from listCurrentOrders and listClearedOrders (api 1.0-DELAY)

    Hello . I've got an empty response from this two methods: listCurrentOrders and listClearedOrders.
    I'm trying to use api 1.0-DELAY.
    listCurrentOrders (no parameters)
    Code:
     {}
    listClearedOrders (BetStatus:SETTLED)
    Code:
    {
        "clearedOrders": [],
        "moreAvailable": false
    }
    Can I get orders on test api (1.0-DELAY)?
    Should I do something before make request to listCurrentOrders and listClearedOrders?
    Is 1.0-DELAY work now?

    Last edited by zia; 12-02-2019, 10:26 AM. Reason: test api
  • BetBro
    Junior Member
    • Feb 2019
    • 4

    #2
    I get the same thing. Always comes back empty.

    Comment

    • jabe
      Senior Member
      • Dec 2014
      • 705

      #3
      Have you placed any orders? I'll try to place some later today after the current outage (hopefully later today, but don't hold your breath) and t the calls to see what I get back.

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        I've launched my prog and run a listCurrentOrders with no parameters. It has come back empty.

        I went to Betfair and put £2 on Manchester United at 99/1 to beat Chelsea this evening.

        I did the listCurrentOrders request without parameters again and it returned data.

        {"jsonrpc":"2.0","result":{"currentOrders":[{"betId":"154263194790","marketId":"1.154280659"," selectionId":48351,"handicap":0.0,"priceSize":{"pr ice":100.0,"size":2.0},"bspLiability":0.0,"side":" BACK","status":"EXECUTABLE","persistenceType":"LAP SE","orderType":"LIMIT","placedDate":"2019-02-18T11:18:46.000Z","averagePriceMatched":0.0,"sizeM atched":0.0,"sizeRemaining":2.0,"sizeLapsed":0.0," sizeCancelled":0.0,"sizeVoided":0.0,"regulatorCode ":"GIBRALTAR REGULATOR"}],"moreAvailable":false},"id":1}

        Comment

        • newbie99
          Junior Member
          • Dec 2018
          • 62

          #5
          Could it be that you have too many orders and its timing out (unlikely probably, but may be worth a test).

          $parameters ='{"filter":{},"orderBy":"BY_MATCH_TIME","sortDir" :"LATEST_TO_EARLIEST", "orderProjection":"ALL","recordCount":"20","dateRa nge":{}}';

          This works for me, for listCurrentOrders (and returns the last 20).

          Comment

          • Arthy
            Junior Member
            • Mar 2019
            • 8

            #6
            i placed bets on Betfair website, and then in my app i am calling "listCurrentOrders":

            {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listCurrentOrders","id":1,
            "params":{
            "filter":{},
            "orderBy":"BY_MATCH_TIME",
            "sortDir":"LATEST_TO_EARLIEST",
            "orderProjection":"ALL",
            "recordCount":"20",
            "dateRange":{}
            }
            }

            I was hoping to get the list of my bets i did online, but i get an empty list.

            any explanations ?
            Last edited by Arthy; 04-04-2019, 09:38 PM.

            Comment

            • jabe
              Senior Member
              • Dec 2014
              • 705

              #7
              Were any of your bets fully or partially matched? This from the documentation:

              "Best Practice To efficiently track new bet matches from a specific time, customers should use a combination of the dateRange orderBy and to filter by "BY_MATCH_TIME" orderProjection “ALL” fully/partially matched orders from the list of returned bets. The response will then filter out any bet records that have no matched date and provide a list of betIds in the order which they are fully/partially matched from the date and time specified in the dateRange field"

              If you have no parameters in dateRange, leave it off, since it's not obligatory. Also filter: {} isn't a parameter of listCurrentOrders.

              Comment

              • Arthy
                Junior Member
                • Mar 2019
                • 8

                #8
                Still no luck, i can see my bets on Betfair website (i did there, and i dont know how to tell you if they were fully or partially matched), but nothing in the betting demo api console (https://developer.betfair.com/exchan...ting-api-demo/).

                But can you confirm that i should be able to see in the API console the bets i have made on betfair website (using the same account)?

                Comment

                Working...
                X