Does listCurrentOrders actually work ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Does listCurrentOrders actually work ?

    I have been stuck on this problem for hours, totally out of ideas now, need some assistance from any API-NG guru or Betfair support please?

    If I use chrome and the api-ng visualiser listCurrentOrders works OK. I captured the packet data using Fiddler to display as json. See image below




    OK so now I try the same listCurrentOrders command from my C# code which is pretty much the same as the Betfair example code with regards to the comms.

    I get an error response. See image below


    The error 32601 is "Method not found"
    The error DSC-0021 The operation specified does not exist.

    I cant see what I am doing wrong. I have changed the params list on my failing request to all sorts of variants it makes no difference it seems to be complaining about the command itself ?

    The only other 2 differences I can spot are the working one has an extra pair of curly braces at the top. But I don't think that is significant as its just the outer most square brackets in the json text. The other working commands I have don't have the curly braces at the top either.

    The 2nd difference is that the working browser based Visualiser command is using a different endpoint of "developer.betfair.com" rather than what I am using of "api.betfair.com". Maybe that is significant I don't know?

    Any thoughts from anyone would be much appreciated, thanks

    Regards Geoff
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Post the actual code you are using as it sounds as if you have not specified the complete method name.

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Problem Solved

      Originally posted by betdynamics View Post
      Post the actual code you are using as it sounds as if you have not specified the complete method name.
      Thanks for the reply, it was enough to solve my problem . I am an idiot, it was a really stupid mistake, that I just couldn't spot. I guess I shouldn't write code late at night after a couple of beers !!

      I had written this

      Code:
       CurrentOrderSummaryReport orderSummaryReport = m_bfAccountClient.listCurrentOrders(
                        betIds, marketIds, orderProjection, dateRange, OrderBy.BY_PLACE_TIME, sortDir, fromRecord, recordCount);
      I had read that line 10 times and didn't spot I had used

      Code:
      m_bfAccountClient
      when I should have used
      Code:
      m_bfClient
      So the error code returned made perfect sense, the account endpoint was correct in saying it didn't understand the listCurrentOrders method. It worked perfectly once I had corrected my typo. Sorry for the dumb post !!

      Regards Geoff

      Comment

      Working...
      X