Not able to place MIS option orders

balboa
Hello,
Getting InputException while placing orders. It was working earlier
Here are my params:

OrderParams orderParams = new OrderParams();
orderParams.quantity = quantity;
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
orderParams.tradingsymbol = "BANKNIFTY21O0737900PE";
orderParams.product = Constants.PRODUCT_MIS;
orderParams.exchange = Constants.EXCHANGE_NFO;
orderParams.transactionType = buyOrSell;
orderParams.validity = Constants.VALIDITY_DAY;
Order order;
try {
order = kiteConnect.placeOrder(orderParams, Constants.VARIETY_REGULAR);
} catch (Throwable e) {
}

Getting the below exception:
com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException: null
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54) ~[kiteconnect-3.1.14.jar:?]
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) ~[kiteconnect-3.1.14.jar:?]
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:86) ~[kiteconnect-3.1.14.jar:?]
at com.zerodhatech.kiteconnect.KiteConnect.placeOrder(KiteConnect.java:353) ~[kiteconnect-3.1.14.jar:?]
........
  • sujith
    Can you run with debug logs enabled and paste the error json here?

    Have you enabled TOTP? You can check out this thread to know more.
Sign In or Register to comment.