ERROR
a1= obj.placeOrder(orderparams)
Traceback (most recent call last):
File "<ipython-input-24-e4e648b3ffb3>", line 1, in <module>
a1= obj.placeOrder(orderparams)
File "C:\Users\nikma\Anaconda3\lib\site-packages\smartapi\smartConnect.py", line 290, in placeOrder
orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
TypeError: 'NoneType' object is not subscriptable
params
{'variety': 'NORMAL',
'tradingsymbol': 'RELIANCE29DEC222440PE',
'symboltoken': '142072',
'transactiontype': 'SELL',
'exchange': 'NFO',
'ordertype': 'MARKET',
'producttype': 'CARRYFORWARD',
'duration': 'DAY',
'quantity': '1250',
'ordertag': 'strangle'}