@milind017 I see that you have put condition in if data['status'] , is it going in retry at all ?
aj_Brk
@aj_Brk
Best posts made by aj_Brk
-
RE: Guide to secure your SmartAPI Account with two factor authentication
Latest posts made by aj_Brk
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@mudit236 @babitakundu It appears it is updated now. Please try - pip install smartapi-python --upgrade
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@gokul try the latest library - pip install smartapi-python --upgrade . It appears the new version is live now
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@Ashok Actually you are right it works most of the time , but for those rare instances where by the time your request went and it expired on server side , i had added retry. It happened to me once perhaps due to slow code execution or internet.
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@milind017 try with this condition
if not data['message'].contains('Invalid totp'):
break -
RE: Guide to secure your SmartAPI Account with two factor authentication
@milind017 I see that you have put condition in if data['status'] , is it going in retry at all ?
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@babitakundu i guess you have to manually download the repo and run python setup.py install. I dont see the code yet updated on pip
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@Ashok what i meant is you can't get this secret by just username and password as Anil is asking. One has to go to enable otp page to get this code one time.
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@admin i too had to build the new code manually. Can you get the code merged to main?
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@ivar i don't think you need to paas totp everytime. I tested get profile and other apis. It is working like before. Only login has changes.
-
RE: Guide to secure your SmartAPI Account with two factor authentication
@anil_patel i don't think that is possible as the secret is generated by angel servers, logic of which is not shared. We can't do this without secret shared by them.