Guide to secure your SmartAPI Account with two factor authentication
-
Using smart api-Angel Broker plugin, include following js file
<script src="https://smartapi.angelbroking.com/common/v1.js"></script>
then passing api key; <smartapi-login href="#" data-smartapi="<api-key>">Login</smartapi-login>
How to solve with this integration?
-
@gautamnaik1994 If you are using python, you can use totp module to generate totp automatically
-
-
How to enable TOTP
-
@gautamnaik1994 I Agree, need something to Automate the Process.
-
@admin One Solution is to Provide the TOTP Via API by Sending the Username & Password of User.
-
@admin Should User Add OTP every day? if yes then I think it is the End of Trading using APIs because no one wants to do the Same Process Again and Again.
I think SEBI Circular is not Telling the OTP required for API Trading. it is only required to Login Account on a Web or Mobile App or Broker.
-
-
Nse circular does not say that you have to use TOTP. This process will make things complicated and orders may fail. Because before placing the orders, the bot/server will have to check if the TOTP is valid or not and then wait/refresh for the latest TOTP. And with 30 second hash
-
Simple solution is to have a one time otp for logging everyday.
-
-
@admin https://smartapi.angelbroking.com/enable-totp not opening
-
@admin How will I be able to automate the login flow using this method on the server?