Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. swappi_shinde
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    swappi_shinde

    @swappi_shinde

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    swappi_shinde Unfollow Follow

    Latest posts made by swappi_shinde

    • Python SDK Missing Function for MPIN Login (generateSessionByMobile)

      Hello Angel One Team and Community,

      I am trying to authenticate with the SmartAPI using the official smartapi-python library, but I am blocked by the login method.

      The Problem:
      My account requires an MPIN-based login. When I use the standard generateSession() function with my password and TOTP, the API correctly rejects it with the error: "LoginbyPassword is not allowed. Please switch to Login by MPIN now. (Error code: AB7001)".

      Troubleshooting Steps I've Already Taken:

      I have uninstalled any old versions of the library.

      I have installed the absolute latest version directly from your official GitHub repository.

      I have programmatically confirmed that this latest library does not contain a generateSessionByMobile function or any other method for an MPIN login.

      This means my account requires a login method that is not available in your public Python library.

      Could you please provide the correct, working Python code snippet for a programmatic login using an MPIN?

      Thank you for your help.

      posted in Python SDK
      S
      swappi_shinde