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
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


. 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 !!
Comment