Not able to place NRML but can place MIS order

NareshTelu
NareshTelu edited September 2021 in Java client
Hi Team

below is my code when i use this code to place an NRML order, am getting error, if the same code is used for MIS order ,it is working but for NRML its giving input exception

please help me resolve this issue.

OrderParams orderParams = new OrderParams();
orderParams.quantity = 25;
orderParams.orderType = Constants.ORDER_TYPE_LIMIT;
orderParams.tradingsymbol = "BANKNIFTY2192338500CE";
orderParams.product = Constants.PRODUCT_NRML; //Note**: Constants.PRODUCT_MIS; working
orderParams.exchange = Constants.EXCHANGE_NFO;
orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
orderParams.validity = Constants.VALIDITY_DAY;
orderParams.price = 15.7;
orderParams.triggerPrice = 0.0;
orderParams.tag = "myTag";


This is for Options and i tried with BANKNIFTY2192338500CE.

Am not sure what is wrong with above parameters , its giving me input exception.

Any inputs will be helpful, Thank you.
  • sujith
    Can you run in debug mode and paste the complete stack trace here?

    PS: Make sure to remove all client and app specific details.
  • NinjaTrader
    it may be the case that NRML orders are blocked for that strike as its very FAR OTM
Sign In or Register to comment.