Facing this issue for the last few days, I have given 550 quantities in the kite.place_order but it has placed 150 quantities. sometimes it works properly, but sometimes not, please have a look at this issue, this may cause major losses. order type: NRML-LIMIT
There is no guarantee that limit orders will be completely filled. There might not be enough liquidity for 550 qty at your limit price. So,only 150 qty could be filled.
That's weird. I have never encountered this problem. You are passing the quantity manually,right?? Are you sure,you didn't put 500 as the qty accidentally in the sell order? If you are sure,there wasn't any mistake from your side,seek help from Sujith Sir or Rakesh Sir .
but when I see in the kite console, there is only 150 quantity taken for that order
in the above image only highlighted order got placed wrongly,
placed a buy order with 550 qty
later placed a sell order with the same quantity, but it takes 500 qty.
had to place 50 qty manually because of that
if you see the above image out of 6 trades, the problem is in 1 trade
sometimes it's in the CALL script sometimes it's in the PUT script
please note that this is on the sell side after the instrument has been bought
readl_orderid = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NFO, tradingsymbol='NIFTY2241317700CE',transaction_type=kite.TRANSACTION_TYPE_SELL, quantity=550, product=kite.PRODUCT_NRML, order_type=kite.ORDER_TYPE_LIMIT, price=price)
You need to add below changes in your order placement code: