Navigation

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

    Login problem

    Bugs
    37
    115
    472
    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
      ArvindAgarwal last edited by

      Please migrate my Account. My Angel Id is UUJR1013

      A 1 Reply Last reply Reply Quote 0
      • A
        ArvindAgarwal last edited by

        Please migrate my Account. My Angel one Id is UUJR1013

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

          @ArvindAgarwal please fill below form
          https://docs.google.com/forms/d/e/1FAIpQLSdgpCiDhSBa_bsKsec002e9unbeQkipOLFAKW7DzPvmiowsaw/viewform

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

            @ArvindAgarwal please fill below form
            https://docs.google.com/forms/d/e/1FAIpQLSdgpCiDhSBa_bsKsec002e9unbeQkipOLFAKW7DzPvmiowsaw/viewform

            1 Reply Last reply Reply Quote 0
            • A
              Anerikat last edited by

              hi, even my id is not working. User ID - A65751

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

                Hi @Anerikat please fill below form
                https://docs.google.com/forms/d/e/1FAIpQLSdgpCiDhSBa_bsKsec002e9unbeQkipOLFAKW7DzPvmiowsaw/viewform

                1 Reply Last reply Reply Quote 0
                • A
                  amitpanchall last edited by

                  def login(self) -> bool:
                      """Connect to Angel One API"""
                      try:
                          self.session = SmartConnect(api_key=self.api_key)
                          get_new_totp = pyotp.TOTP(self.totp).now()
                          data = self.session.generateSession(self.client_id, self.password, get_new_totp)
                  
                          if data['status']:
                              self.feed_token = data['data']['feedToken']
                              self.auth_token = data['data']['jwtToken']
                              self.connected = True
                              print("Successfully connected to Angel One API")
                              return True
                          else:
                              print(f"Login failed: {data['message']}")
                              return False
                  
                      except Exception as e:
                          print(f"Login failed: {str(e)}")
                          return False
                  
                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @amitpanchall last edited by

                    @amitpanchall The login API is working fine, please share your error.

                    1 Reply Last reply Reply Quote 0
                    • H
                      harish9814 last edited by

                      TOTP invalid dikha rha hai. i dont know why. should i need to activate my account for SmartAPI. if yes pl migrate my account to use SmartAPI. My Client code is H72897. I already filled a form

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

                        Hi @harish9814

                        Please take screenshot of your errors and share it here

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