Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Sailash
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Sailash

    @Sailash

    0
    Reputation
    3
    Posts
    3
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    Sailash Follow

    Best posts made by Sailash

    This user hasn't posted anything yet.

    Latest posts made by Sailash

    • User blocked from trading

      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.

      posted in General Discussion
      S
      Sailash
    • 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 call

      data = smartApi.generateSession("Mxxx","Gxxxxx")
      refreshToken = login['data']['refreshToken']

      posted in General Discussion
      S
      Sailash
    • 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

      posted in General Discussion
      S
      Sailash