Dear @HowUTrade team, I am facing issue while sending CO-Cover order with Limit price. it gets cancelled automatically. However if I send market order then it executed normally. I am following below syntax. request your help in it. My syntax- PlaceCO("NFO","BANKNIFTY20APRFUT","BUY","1","19550","LIMIT","19610", CTag) I am following correct sysntax as below but still error persist- PlaceCO(Exch, TrdSym, Trans, Qty, stoploss_Price, OrdType, LmtPrice, CTag)
If the Order is CANCELLED by OMS, then the order information should have cancelled reason. Pls check your order book/history for the cancelled message.
The following are most common reasons; 1. The Price is out of the current execution range 2. Strike price is outside the allowed range. Check the margin calculator for allowed strikes; or try a strike closer to the spot price. 3. First leg of the cover order failed; hence the stoploss order was cancelled automatically. 4. limit price and trigger price cannot be same
As replied earlier, you should provide complete order information (orderid etc), it impossible to help without order details.
still waiting for your reply on below query.
Only Zerodha can explain why the order is cancelled. When this happens next time, pls contact @sujith with order number.
We guess below reasons;
1. TrgPrice(SL) >= LmtPrice(ENTRY) for BUY and vice versa for SELL
2. TrgPrice(SL) >= LTP for BUY at order time
Is it an input exception or canceled or rejected? You need to give a proper error message to help you out.
@HowUTrade Sl is kept 2% below limit price in case of buy. Thanks
The library is by @HowUTrade team, they will help you out but for that, you need to provide enough information.
If the Order is CANCELLED by OMS, then the order information should have cancelled reason.
Pls check your order book/history for the cancelled message.
The following are most common reasons;
1. The Price is out of the current execution range
2. Strike price is outside the allowed range. Check the margin calculator for allowed strikes; or try a strike closer to the spot price.
3. First leg of the cover order failed; hence the stoploss order was cancelled automatically.
4. limit price and trigger price cannot be same
As replied earlier, you should provide complete order information (orderid etc), it impossible to help without order details.