TypeError: 'NoneType' object is not subscriptable
-
Hello admin,
I have recently opened an account in Angel one broking. While, attempting to use python api for my purpose I am getting this error eventhough I have given all the inputs like, username, password and apikey. The error is from the below code.data = obj.generateSession(Id,pwd)
refreshToken= data['data']['refreshToken']Quick help is appreciated. Thank you!
-
@PandaTrade Hello!
Thanks for the reply. I have put that in the while true loop still the problem exist. Is there any other way? -
@Anvesh-Raja There must be a login problem.
Keep this code in a always true loop.