It happens sometimes that while placing order, the program throws Input Exception.
It does not happen every time. It occurs once a week or so, so it's hard to reproduce and indicates that it does not seem like issue with my code.
I don't retry placing orders in a loop. That is, If placing an order fails, I check my history of placed orders and by comparing them with unique orderTag, I check If order has gone through in-spite of exception before retrying.
I retry 3 times before deciding to quit.
Generally the API works fine and I don't face issues. Today it happened and my program was unable to exit from SBIN @ 9:45 AM due to this and profit turned into losses. Code: com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
The message is empty. However as its happening only on the first sell order of the day from holdings , I suspect , it is related to CSDL authorization. I have couriered my PoA forms to Zerodha office and then expect this issue to be resolved.
You can know more about the format here.
Here is the order information that failed. :