Navigation

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

    Access rate

    General Discussion
    7
    18
    682
    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
      Surya 1 last edited by

      Hi @admin and Team,

      What is the recommended access rate per minute for api calls ? like rmslimit, positions, ltp etc

      Im getting this error while testing.. most probably I exceeded the limit..
      b'Access denied because of exceeding access rate'

      Hence interested in knowing it. Also please enable the search function. Apologies if I repeated the question that is already asked.

      A B 2 Replies Last reply Reply Quote 0
      • A
        admin @Surya 1 last edited by

        Hi @rajanprabu ,

        Please refer below table

        364058d1-0fc8-4b79-9a5e-ab99cd9d3939-image.png

        W 1 Reply Last reply Reply Quote 0
        • B
          brijeshyadav123 @Surya 1 last edited by

          @rajanprabu hey did you get solution of your query bcz i need help

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

            Hey @macstar440

            I just reduced my access limit to what described in the table. I have no issues now..

            1 Reply Last reply Reply Quote 0
            • punit
              punit last edited by

              @admin , I have faced same error while calling generateSession. Its not like I am doing multiple calls, but only one call at 9.00AM IST.

              May be overall system is hitting the rate limits by Infra side ?

              D S 2 Replies Last reply Reply Quote 0
              • D
                daytrader @punit last edited by

                @dheepi @admin I also get this access rate issue when I try to login. After multiple attempts I am able to login.

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

                  @dheepi said in Access rate:

                  Its not like I am doing multiple calls, but only one call at 9.00AM IST.

                  Yes I have also faced this isse on somedays..

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

                    @dheepi Thank you for sharing the logs with us.

                    @rajanprabu @daytrader

                    1. Can you please confirm the time at which you are trying to generate the session?
                    2. Are you trying to generate the session for multiple accounts at same time?

                    If possible, please share the logs with us on api@angelbroking.com

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

                      @admin

                      This is what I do.. I generate session and then immediately generate token and dump in on to json file. This is I normally do at morning 9:10 or so.. Then I reuse the tokens at 9:15 for my session.

                      Maybe generating session and generating tokens immediately after hitting the rate limit ?

                      Having said that this did not occur last days.

                      from smartapi import SmartConnect
                      import json
                      
                      
                      with open(Angel_Broking/ab_user.json') as f:
                          data = json.load(f)
                      
                      api_key = data['api_key']
                      client_code = data['client_code']
                      password = data['kennwort']
                      
                      obj = SmartConnect(api_key=api_key)
                      
                      data = obj.generateSession(client_code, password)
                      tokens = obj.generateToken(data["data"]["refreshToken"])   
                      
                      with open('Angel_Broking/ab_tokens.json', 'w') as outfile:
                          json.dump(tokens['data'], outfile)
                      
                      A 1 Reply Last reply Reply Quote 0
                      • A
                        admin @Surya 1 last edited by

                        @rajanprabu said in Access rate:

                        data = obj.generateSession(client_code, password)
                        tokens = obj.generateToken(data["data"]["refreshToken"])

                        HI @rajanprabu , both these calls need not be done together. If so it will show access rate error.

                        Generate token needs to be called after 150 minutes, once the token is expired.

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

                          @admin Thank you..

                          1 Reply Last reply Reply Quote 0
                          • S
                            S_DEV last edited by

                            Hi, what is the throttling limit rate for getCandleData?
                            How do we limit request per second is there any method in SmartAPI SDK for python?

                            Can anyone please help me with this?

                            Thanks,

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

                              Hi @S_DEV You can hit 3 request in a second to ace's historical data.

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

                                @admin I think rate is 10 as shown in table

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

                                  HI @webseos Please go through below doc.

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

                                    @admin Thanks for the information🙂

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

                                      HI @S_DEV you can go through below doc:
                                      https://smartapi.angelbroking.com/docs/RateLimit

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        webseos @admin last edited by

                                        @admin What is the recommended rate of Historical Data Fetch please mention.. Also some issue on it pls see the link here - https://smartapi.angelbroking.com/topic/2411/python-api-historical-data-fetch-became-arbitrary-dataframe-not-coming-after-totp-has-been-imposed

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