Order is not placing getting error in smart api


  • File "D:\halftrend\venv\Lib\site-packages\SmartApi\smartConnect.py", line 291, in placeOrder
    orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
    TypeError: 'NoneType' object is not subscriptable


  • Hi @harshaguruhs

    Apologies for delayed response.
    We have fixed "NoneType" error from our end. Please make sure the recent SmartAPI SDK is being consumed.
    Kindly share us the API request, header passed to analyze the issue from our end if issue still occurs

    Thanks & Regards,
    SmartAPI team