Getting account balance/available to bet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lidder
    Junior Member
    • Jun 2014
    • 4

    #1

    Getting account balance/available to bet

    Hi. I'm trying to get my acc balance. Can someone tell me what is wrong with my request?

    {"jsonrpc": "2.0", "method": "AccountAPING/v1.0/getAccountFunds"}

    I'm getting the following response:

    {u'jsonrpc': u'2.0', u'error': {u'message': u'DSC-0021', u'code': -32601}}

    Thanks
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Are you sending it to the right endpoint?

    For account operations you need to send it to the Accounting endpoint (https://api.betfair.com/exchange/account/json-rpc/v1)

    Comment

    • lidder
      Junior Member
      • Jun 2014
      • 4

      #3
      No I wasn't!

      Thanks.

      Though I have now updated the end point and I'm just getting <Response [200]>ratehr than any jsoon response back from it - is the API currently down?

      Comment

      • gus
        Senior Member
        • Jan 2009
        • 134

        #4
        Originally posted by lidder View Post
        No I wasn't!

        Thanks.

        Though I have now updated the end point and I'm just getting <Response [200]>ratehr than any jsoon response back from it - is the API currently down?

        I'm having the same problem here. Haven't made any changes to my code, and it's been working fine for monthes.

        Think it must be something to do with the outage earlier this mornin.

        Comment

        • gus
          Senior Member
          • Jan 2009
          • 134

          #5
          Problem seems to have been fixed now 16:00 UK Time (Sunday).

          Comment

          Working...
          X