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.