Dear @admin , when I tried to login from https://smartapi.angelbroking.com/publisher-login?api_key=xxxxx, I get the message, User is blocked from trading. Please resolve this. I feel because of this issue, I am not able to generate session.
Sailash
@Sailash
Best posts made by Sailash
Latest posts made by Sailash
-
User blocked from trading
-
RE: Unable to login
@admin I have tried the steps mentioned in the github...with the same code. Still the same. Can you please let me know where is the fault?
from smartapi.smartConnect import SmartConnect #or
#import smartapi.smartExceptions(for smartExceptions)#create object of call
smartApi =SmartConnect(api_key="xxxx")
obj=SmartConnect(api_key="xxxx")
#login api calldata = smartApi.generateSession("Mxxx","Gxxxxx")
refreshToken = login['data']['refreshToken'] -
Unable to login
@admin I am trying to connect to the api through python. Currently I am getting NameError with folloiwng message. Is there a bug?
~\Anaconda3\envs\angel1\lib\site-packages\smartapi\smartConnect.py in generateSession(self, clientCode, password)
242 loginResultObject=self._postRequest("api.login",params)
243
--> 244 if loginResultObject['status']==True or true:
245 jwtToken=loginResultObject['data']['jwtToken']
246 self.setAccessToken(jwtToken)NameError: name 'true' is not defined