TypeError: 'NoneType' object is not subscriptable


  • 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
    

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