Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    TypeError: 'NoneType' object is not subscriptable

    Python SDK
    0
    3
    44
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Anvesh Raja last edited by

      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!

      R 1 Reply Last reply Reply Quote 0
      • R
        rahul4019 @Anvesh Raja last edited by

        @Anvesh-Raja There must be a login problem.
        Keep this code in a always true loop.

        A 1 Reply Last reply Reply Quote 0
        • A
          Anvesh Raja @rahul4019 last edited by

          @PandaTrade Hello!
          Thanks for the reply. I have put that in the while true loop still the problem exist. Is there any other way?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post