Navigation

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

    prathamshah845

    @prathamshah845

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

    prathamshah845 Unfollow Follow

    Latest posts made by prathamshah845

    • TypeError: 'NoneType' object is not subscriptable

      Re: TypeError: 'NoneType' object is not subscriptable

      Hi @admin123 @admin @administrators @adminatkremlin
      I am getting this error, few minutes back this was a fully functional code, I just enterted new TOTP, and then it started giving me this error.

      C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\venv\Scripts\python.exe C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py
      Traceback (most recent call last):
      File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py", line 14, in <module>
      data = obj.generateSession("S465418","8585","051289")
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\SmartApi\smartConnect.py", line 235, in generateSession
      id = user['data']['clientcode']
      ~~~~~~~~~~~~^^^^^^^^^^^^^^
      TypeError: 'NoneType' object is not subscriptable

      Process finished with exit code 1

      posted in Python SDK
      P
      prathamshah845
    • Python Sample Code Not Working Even After Providing TOTP

      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.

      posted in Python SDK
      P
      prathamshah845
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      4 Client Code : AIIO1001

      b'{"status":false,"message":"YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007","data":null}'

      posted in General Discussion
      P
      prathamshah845