Navigation

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

    Jagdeep

    @Jagdeep

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

    Jagdeep Follow

    Best posts made by Jagdeep

    This user hasn't posted anything yet.

    Latest posts made by Jagdeep

    • Login API not working

      I am getting the error while doing the login from the API:

      login error.jpg ---------------------------------------------------------------------------
      TypeError Traceback (most recent call last)
      Cell In[20], line 4
      2 obj=SmartConnect(api_key=apikey)
      3 data = obj.generateSession(username,pwd,pyotp.TOTP(token).now())
      ----> 4 refreshToken= data['data']['refreshToken']
      5 res = obj.getProfile(refreshToeken)
      6 res['data']['exchanges']

      TypeError: 'NoneType' object is not subscriptable

      Please help to sort this.

      posted in Python SDK
      J
      Jagdeep