Navigation

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

    Invalid TOTP

    General Discussion
    0
    29
    380
    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.
    • C
      cpsingh last edited by

      Same issue for me as well.

      1 Reply Last reply Reply Quote 0
      • P
        priya last edited by

        Not able to login
        This message showing after filling login credentials.

        1 Reply Last reply Reply Quote 0
        • K
          kaal last edited by

          Same for me too, just yesterday the code was working fine.

          1 Reply Last reply Reply Quote 0
          • M
            mihirshah2500 last edited by

            Same for me. Team please look into this. It was working yesterday and now not working.

            1 Reply Last reply Reply Quote 0
            • R
              rakeshnp last edited by

              Why admin is not answering

              1 Reply Last reply Reply Quote 0
              • G
                ganeshpanpat last edited by

                TypeError Traceback (most recent call last)
                <ipython-input-37-b86ba37da6be> in <module>
                1 obj=SmartConnect(api_key=apikey)
                ----> 2 data = obj.generateSession(username,pwd,totp)
                3 data

                TypeError: generateSession() takes 3 positional arguments but 4 were given

                getting this error

                W J 2 Replies Last reply Reply Quote 0
                • W
                  whemant @ganeshpanpat last edited by

                  @ganeshpanpat I am also getting this error. @admin kindly assist.

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

                    Code was updated to send totp, need to checkout new code or edit smartConnect.py file.. Really annoying release process.
                    b2662549-888e-491e-8deb-07ca2621412b-image.png

                    1 Reply Last reply Reply Quote 0
                    • T
                      tinvenc last edited by

                      @SaralaKannan

                      This link shows how to enable totp and use in the sdk
                      https://smartapi.angelbroking.com/topic/2377/guide-to-secure-your-smartapi-account-with-two-factor-authentication?_=1664622563730

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        er.anujkaushal @tinvenc last edited by

                        @tinvenc
                        this link is not working, what to do?

                        https://apiconnect.angelbroking.com/rest/auth/angelbroking/user/v1/loginByPassword

                        T 1 Reply Last reply Reply Quote 0
                        • M
                          mihirshah2500 last edited by

                          Even if there is any change around including TOTP in the Smartconnect generateSession, the SmartAPI library is not updated by Angel.

                          The older version was 1.2.9 and even if I reinstall the library now, it still is same. https://github.com/angel-one/smartapi-python

                          The error I am getting by adding TOTP in the generateSession is:
                          "TypeError: SmartConnect.generateSession() takes 3 positional arguments but 4 were given"

                          I have never seen a more irresponsible release plan for any user-facing product.

                          ![0_1664626375677_Screenshot 2022-10-01 at 5.42.47 PM.png](Uploading 100%)

                          T A 2 Replies Last reply Reply Quote 0
                          • T
                            tinvenc @mihirshah2500 last edited by

                            @mihirshah2500

                            I do agree, I was debugging from morning to understand why its not working and going through many links here

                            1 Reply Last reply Reply Quote 0
                            • T
                              tinvenc @er.anujkaushal last edited by

                              @er-anujkaushal

                              This link will be used by the SDK for login, You have to follow the numbered steps in the link an update the code, and pass the value for new parameter added

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

                                Hi @mihirshah2500

                                Please follow below steps

                                Step 1: Checkout smart api python repo (https://github.com/angel-one/smartapi-python)
                                Step 2: Checkout the main branch if not already there
                                Step 3: Run python setup.py install

                                M J V 3 Replies Last reply Reply Quote 0
                                • M
                                  mihirshah2500 @admin last edited by

                                  @admin I don't think this is the best way for users to update the library on their end.
                                  Why can't Angel team update the library version, so that its an online sync that can be done without checking out the smart api repository?

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

                                    @mihirshah2500 @tinvenc @cpsingh @priya @rakeshnp @Ashok

                                    Totp changes have been deployed in the latest python release 1.3.0
                                    Please use the following command to upgrade to the latest python release
                                    pip install smartapi-python --upgrade

                                    M 1 Reply Last reply Reply Quote 0
                                    • J
                                      jupyter @ganeshpanpat last edited by

                                      @ganeshpanpat were you able to solve this?

                                      G 1 Reply Last reply Reply Quote 0
                                      • J
                                        jupyter @admin last edited by

                                        @admin Still facing the same error. "TypeError: SmartConnect.generateSession() takes 3 positional arguments but 4 were given"

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          ganeshpanpat @jupyter last edited by

                                          @jupyter Yes.. its working now

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            jupyter @ganeshpanpat last edited by

                                            @ganeshpanpat I am still not sure where I am going wrong. I have updated the library with the latest version to 1.30. I am passing the TOTP parameter correctly. Can you suggest what can I be doing wrong?

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