Issue in Market Order

sivaaadvocate
I am getting Input Exception in Market order. Please let me know if there are any changes done in the java API.
OrderParams orderParams = new OrderParams();
orderParams.quantity = 50;
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
orderParams.tradingsymbol = "NIFTY21N0318000CE";
orderParams.product = Constants.PRODUCT_NRML;
orderParams.exchange = Constants.EXCHANGE_NFO;
orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
orderParams.validity = Constants.VALIDITY_DAY;
orderParams.tag = "myTag";

kiteConnect.placeOrder(orderParams, Constants.VARIETY_REGULAR);

This code was working last week without any issues.

  • sujith
    can you paste the input exception's message? or run it in debug mode to enable debug logs and take a look at the json to know the reason.
Sign In or Register to comment.