Invalid Totp


    • smartapi-python has been updated to 1.3.0
    • data =obj.generateSession("LoginID","Password","Totp")
      -data dictionary values
      data NoneType 1 None
      errorcode str 6 AB1050
      message str 12 Invalid totp
      status bool 1 False
      -I got the totp from https://smartapi.angelbroking.com/enable-totp
      by loging in using my LoginID and Password.
      Screenshot_20221101_120547.png
      How may I fix this error?

  • @angom
    The number which you are seeing under QR-Code is not TOTP. You need to scan code through your mobile and then open then link scanned by scanner through authenticator app, preferably using Google Authenticator. Then use the OTP shown in that authenticator app as TOTP. Please try this and let us know in discussion further.