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