Can we modify partially filled order using smart api?
-
If I place limit order with quantity 100, then it gets partially fulfilled example 50 out of 100 quantity got filled. Then if i use modifyOrder API to modify the limit price or quantity of order, is it possible ?
Or I need to cancel this order and place another order with new left out quantity ? -
@coolankurmahe
If you place limit order with quantity 100, then 30 got executed. In that case you can modify the limit price and quantity of the remaining 70 quantity using modifyOrder API. -
@Moderator_3 As stated above, I was asking if the order is already partially filled, then we can still modify the limit price ? Can you please confirm ? if yes, please share the client code ?
I had come across "Yes, you can modify or cancel a limit order before execution. You can adjust the limit price or quantity unless it’s already been partially or fully executed."
in https://www.angelone.in/knowledge-center/online-share-trading/what-is-limit-order-and-how-it-is-used
which states we can't is it is partially filled. -
@coolankurmahe
Yes, it is possible to modify both the limit price and the remaining quantity using the modifyOrder API without the need to cancel and place a new order.
Please refer the documentation of ModifyOrder:
https://smartapi.angelbroking.com/docs/Orders#modifyorder