Placing new order returns input exception

mukesh_mohanan
OrderParams orderParams = new OrderParams();
orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
orderParams.tradingsymbol="PNB";
orderParams.quantity = 1;
orderParams.price = 0.0;
orderParams.triggerPrice = 0.0;
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
orderParams.product = Constants.PRODUCT_MIS;
orderParams.validity = Constants.VALIDITY_DAY;

orderParams.exchange = Constants.EXCHANGE_NSE;


try {
Order order11 = kiteSdk.placeOrder(orderParams, Constants.VARIETY_REGULAR);
} catch (KiteException | JSONException | IOException ex) {
Logger.getLogger(NewClass.class.getName()).log(Level.SEVERE, null, ex);
}

Please help me to solve this problem...
I was using the same method to place order 3 months back..
But now it shows input exception

Nov 10, 2021 11:45:20 AM NewClass newOrders
SEVERE: null
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:86)
at com.zerodhatech.kiteconnect.KiteConnect.placeOrder(KiteConnect.java:319)
at NewClass.newOrders(NewClass.java:65)
at NewClass.main(NewClass.java:31)
Tagged:
This discussion has been closed.