i got error while placing delivery market NFO order.while intraday order placed successfully.
sample code
pdtype="DELIVERY"
token='54465'
symbol='NIFTY19MAY2216200CE'
qty='50.0'
buy_sell='BUY'
ordertype='MARKET'
price='0'
exch_seg='NFO'
variety='NORMAL'
triggerprice=0
#try:
orderparams = {
"variety": variety,
"tradingsymbol": symbol,
"symboltoken": token,
"transactiontype": buy_sell,
"exchange": exch_seg,
"ordertype": ordertype,
"producttype": pdtype,
"duration": "DAY",
"price": price,
"squareoff": "0",
"stoploss": "0",
"quantity": qty,
"triggerprice":triggerprice
}
orderId=credentials.SMART_API_OBJ.placeOrder(orderparams)
error:
orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
TypeError: 'NoneType' object is not subscriptable