Navigation

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

    TypeError: 'NoneType' object is not subscriptable

    Python SDK
    0
    2
    21
    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.
    • T
      techbytecache last edited by

      Randomly getting this error on order placement. Some orders with same paramlist go through and then suddenly it starts to fail. Happening since yesterday. Today again faced this issue around 12:13 pm. Suffered loss yesterday as Buy order went through but SL order failed. Please resolve it ASAP to avoid losses for the users

      File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\SmartApi\smartConnect.py", line 285, in placeOrder
        orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
      TypeError: 'NoneType' object is not subscriptable
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sachin.comptech @techbytecache last edited by

        @techbytecache I am also getting the same error while placing the SL BUY Order.

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