Navigation

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

    Python Sample Code Not Working Even After Providing TOTP

    Python SDK
    0
    1
    2
    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.
    • P
      prathamshah845 last edited by

      Hi @admin

      Q1. Do you have step by step tutorial on how to setup your python API ? your sample codes also aren't working even after we provide whatever necessiry.

      Q2. Do we have to enter TOTP every single minute? how does this TOPT works in algo trading .
      data = obj.generateSession("Username","Password","TOTP")

      Q3. Also when i enter TOTP, your sample code still throw error for generating refreshToken, pls refer below ;
      Traceback (most recent call last):
      File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py", line 13, in <module>
      refreshToken = data['data']['refreshToken']
      ~~~~~~~~~~~~^^^^^^^^^^^^^^^^
      TypeError: 'NoneType' object is not subscriptable

      Please kindly Help resolve the matter. Thanks in Advance.

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