Error in smartApi.placeOrder(orderparams) Couldn't parse the JSON response received from the server: b''
-
I am getting Error while placing DELIVERY Order using APIv2. Same function is working for INTRADAY Delivery type. I am using below API call with the Parameters as below:
order_id = smartApi.placeOrder(orderparams)
orderparams is as below:
{'variety': 'REGULAR', 'tradingsymbol': 'SBIN-EQ', 'symboltoken': '3045', 'transactiontype': 'SELL', 'exchange': 'NSE', 'ordertype': 'LIMIT', 'producttype': 'DELIVERY', 'duration': 'DAY', 'price': '651', 'squareoff': '0', 'stoploss': '0', 'quantity': '1'}
Getting Error as below when I execute the code.
Exception has occurred: DataException
Couldn't parse the JSON response received from the server: b''
StopIteration: 0Please guide what is the issue with DELIVERY producttype order.
1 out of 1