Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Python SDK 'Access denied because of exceeding access rate'

    Python SDK
    2
    15
    137
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      subhu085 last edited by

      Hi,

      Getting this error since yesterday in the first hour of order execution. Yesterday after 10:15 automatically it worked.

      raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
      smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'

      Kindly let me know how to avoid this.

      Regards,
      Partha Mohapatra

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @subhu085 last edited by

        HI @subhu085 Kindly go through below doc.
        https://smartapi.angelbroking.com/docs/RateLimit

        S 1 Reply Last reply Reply Quote 0
        • S
          subhu085 @admin last edited by

          @admin Hi But it was my first access to API in the morning for login...I didn't do any continuous requests to the ANGEL API.

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @subhu085 last edited by

            HI @subhu085 please try again and update us.

            S 1 Reply Last reply Reply Quote 0
            • S
              subhu085 @admin last edited by subhu085

              @admin Still getting the same error

              File "C:\Users\test\AppData\Local\Programs\Python\Python39\lib\site-packages\smartapi\smartConnect.py", line 191, in _request
              raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
              smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'

              S 1 Reply Last reply Reply Quote 0
              • S
                subhu085 @subhu085 last edited by

                @admin Any update...the first access is again giving the same access rate issue.

                A 1 Reply Last reply Reply Quote 0
                • A
                  admin @subhu085 last edited by

                  HI @subhu085 Post your client id here.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    subhu085 @admin last edited by

                    @admin S803575 is the client id.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      admin @subhu085 last edited by

                      Hi @subhu085 We have noted your client id also we want you to mail your piece of code at api@angelbroking.com .

                      A S 2 Replies Last reply Reply Quote 0
                      • A
                        admin @admin last edited by

                        HI @subhu085 Kindly update us if you are still facing the same issue.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          subhu085 @admin last edited by

                          @admin Yes today again faced the issue.

                          1 Reply Last reply Reply Quote 0
                          • S
                            subhu085 @admin last edited by

                            @admin I have shared the code over email.

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              admin @subhu085 last edited by

                              HI @subhu085 As discussed we will get back to you once we review your code.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                subhu085 @admin last edited by

                                @admin Hi Any update on the code review and the issue raised.

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  admin @subhu085 last edited by admin

                                  HI @subhu085 As discussed on the call your order got successfully executed.Have you activated any algo strategy from other providers.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post