Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. avinashm
    3. Topics
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    Topics created by avinashm

    • A

      LOGIN API
      Python SDK • • avinashm

      2
      0
      Votes
      2
      Posts
      26
      Views

      S

      from smartapi import SmartConnect
      import pyotp
      global obj

      user_id = ("Your Angel One Account id")
      api_key = ("Api Key")
      pwd = "Mobile app pin "
      qrotp = "Your QRotp"
      totp = pyotp.TOTP(qrotp)
      totp = totp.now()
      obj = SmartConnect(api_key)
      data = obj.generateSession(user_id, pwd,totp)

      refreshToken= data['data']['refreshToken']
      feedToken=obj.getfeedToken()
      userProfile= obj.getProfile(refreshToken)

      print(userProfile)

    • A

      log in api priblem
      Python SDK • • avinashm

      2
      0
      Votes
      2
      Posts
      28
      Views

      T

      @avinashm said in log in api priblem:

      Error in login 'NoneType' object is not subscriptable

      use mpin bro