kiteConnect.placeOrder gives com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException

samant
I am trying to place an NFO, MARKEY BUY order of type REGULAR

here is my code
Option o= new Option("NIFTY2290818100CE","CE");
OrderParams orderParams = new OrderParams();
orderParams.price = 0.0;
System.out.println("orderParams.price ="+orderParams.price);
orderParams.quantity = 50;
System.out.println("orderParams.quantity = "+orderParams.quantity);
orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
System.out.println("orderParams.transactionType = "+orderParams.transactionType);
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
System.out.println("orderParams.orderType ="+orderParams.orderType );
orderParams.tradingsymbol = o.getName();
System.out.println("orderParams.tradingsymbol = "+ orderParams.tradingsymbol );
orderParams.exchange = Constants.EXCHANGE_NFO;
System.out.println("orderParams.exchange = "+ orderParams.exchange );
orderParams.validity = Constants.VALIDITY_IOC;
System.out.println("orderParams.validity = "+ orderParams.validity );
orderParams.triggerPrice = 0d;
System.out.println("orderParams.triggerPrice = "+ orderParams.triggerPrice );
orderParams.product = Constants.PRODUCT_NRML;
System.out.println("orderParams.product = "+orderParams.product);


And here is the exception I get

orderParams.price =0.0
orderParams.quantity = 50
orderParams.transactionType = BUY
orderParams.orderType =MARKET
orderParams.tradingsymbol = NIFTY2290818100CE
orderParams.exchange = NFO
orderParams.validity = IOC
orderParams.triggerPrice = 0.0
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:282)

Exeception.getMessgae()= null ********** Exception.getCause= null
This discussion has been closed.