My program created an an Option - NIFTY20O2211700CE with Stoploss = 314.38750000000005 Following are the orderParams orderParams.price =0.0 orderParams.quantity = 25 orderParams.transactionType = SELL orderParams.orderType =MARKET orderParams.tradingsymbol = NIFTY20O2211700CE orderParams.exchange = NFO orderParams.validity = DAY orderParams.triggerPrice = 314.38750000000005 orderParams.product = MIS
When I use these orderParams to call Order order = kiteConnect.placeOrder(orderParams, Constants.VARIETY_CO);, I get following exception Exception happened com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:85) at com.zerodhatech.kiteconnect.KiteConnect.placeOrder(KiteConnect.java:291)
Could you please locate what input is being wronly sent ?
You need to print an exception message or run javakiteconnect with a debug flag on to see the exact json response.