'errorCode': 'ACCESS_DENIED'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tradernz
    Junior Member
    • Feb 2016
    • 19

    #1

    'errorCode': 'ACCESS_DENIED'

    Hey all, hoping someone might be able to help point me in the right direction ..

    Ive been able to connect to the API using the betfairlightweight library in python. Im using the 1.0 Delayed App key .

    I was able to use the examples to query events and options and was ready to put a back position into the market.... but I got this error

    APIError: SportsAPING/v1.0/placeOrders Params: {'marketId': '1.156709766', 'instructions': [{'orderType': 'LIMIT', 'selectionId': '9312137', 'side': 'BACK', 'limitOrder': {'price': 2, 'persistenceType': 'LAPSE', 'size': 5}}], 'customerStrategyRef': 'back_the_fav'} Exception: None Error: {'code': -32099, 'message': 'ANGX-0015', 'data': {'APINGException': {'requestUUID': 'prdang-2882bf-02261050-00d030ce70', 'errorCode': 'ACCESS_DENIED', 'errorDetails': ''}, 'exceptionname': 'APINGException'}} Full Response: {'jsonrpc': '2.0', 'error': {'code': -32099, 'message': 'ANGX-0015', 'data': {'APINGException': {'requestUUID': 'prdang-2882bf-02261050-00d030ce70', 'errorCode': 'ACCESS_DENIED', 'errorDetails': ''}, 'exceptionname': 'APINGException'}}, 'id': 1}
    So I guess that the access denied part is something blocking me, is it the fact im using the delayed key,

    https://support.developer.betfair.co...plication-Key-

    Just on this page it talks about the delayed key being a YES for "Bet Placement (Live Exchange)"


    Any thoughts
    Cheers in advance

  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    One possibility is that you need to have placed a bet and had it settled within a recent time period. I think it's sometime during the last 3 months, but not certain. Another is that you are in a "restricted jurisdiction". "exceptionName" could be a clue, but I don't know what it might be referring to, especially as you've logged in okay.
    Last edited by jabe; 28-03-2019, 01:10 AM.

    Comment

    • tradernz
      Junior Member
      • Feb 2016
      • 19

      #3
      Cheers Jabe ... I've had plenty of bets placed recently ... I'm from New Zealand so don't think it's the jurisdiction issue ...

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Humour me here: try small p in params.


        exceptionName not a clue itself... duh!

        Comment

        • tradernz
          Junior Member
          • Feb 2016
          • 19

          #5

          Hey, I believe the P is output as I cant change it in my code... Im thinking its something to do with the sessions

          Comment

          • jabe
            Senior Member
            • Dec 2014
            • 705

            #6
            I searched the forum and found someone else had had the same problem. He created a new delayed key under a different Betfair username and all was well. So not a coding problem. Might be worth contacting the support people (but don't ask me how!).

            Previous case: https://forum.developer.betfair.com/...th-delayed-key

            Comment

            • tradernz
              Junior Member
              • Feb 2016
              • 19

              #7
              Awesome, Cheers Jabe thats really handy,... thanks so much for taking the time to help point me in the right direction... will follow up with support and reply back with a update for others.... cheers mate.

              Comment

              • tradernz
                Junior Member
                • Feb 2016
                • 19

                #8
                Jabe your a star mate... that's exactly what it was and the support guys were able to sort it out.... much appriciated

                Comment

                • jabe
                  Senior Member
                  • Dec 2014
                  • 705

                  #9
                  Good stuff!

                  Comment

                  • prasedenica
                    Junior Member
                    • Aug 2022
                    • 3

                    #10
                    Originally posted by jabe View Post
                    I searched the forum and found someone else had had the same problem. He created a new delayed key under a different Betfair username and all was well. So not a coding problem. Might be worth contacting the support people (but don't ask me how!).

                    Previous case: https://forum.developer.betfair.com/....54uix1z0wp9zz/duck life
                    Thank you for sharing

                    Comment

                    Working...
                    X