Closed TWP80 closed 6 months ago
partially filled order not modifying for example SBIN LIMIT order placed for 10 qty, and partially filled for ex. 2/10 if filled than order not modifying
symbol = "SBIN" exchange = "BSE" api.place_order(buy_or_sell='B', product_type='C', exchange=exchange, tradingsymbol=symbol, quantity=10 , discloseqty=qty, price_type='LMT', price=600, retention='DAY', remarks='my_order_001')
AFTER 2/10 if filled I GIVE newquantity = 10 its not work
order_book = api.get_order_book() buy_all_order_dict = [d for d in order_book if d.get('status') == 'OPEN' and d.get('trantype') == 'B'] buy_order_dict = next((d for d in buy_all_order_dict if d.get('tsym') == symbol), None) api.modify_order( orderno = buy_order_dict['norenordno'], exchange = exchange, tradingsymbol = symbol, newquantity = 10, newprice_type = 'LMT', newprice = 595)
error is "REVEALED QTY SHOULD BE LESS THAN REMAINING QTY"
partially filled order not modifying for example SBIN LIMIT order placed for 10 qty, and partially filled for ex. 2/10 if filled than order not modifying
AFTER 2/10 if filled I GIVE newquantity = 10 its not work
error is "REVEALED QTY SHOULD BE LESS THAN REMAINING QTY"