It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Changing quantity on a partially filled limit order!
After I get a partial fill on my limit order, if I change the 'quantity' of this order, am I changing the pending quantity or the overall quantity?
Taking care of partial orders is one of the edge case scenarios in my automation system, and would appreciate an answer. Testing the API call from my end will require huge effort to set-up the partial-trade in
If you are modifying partially filled order's quantity then you are modifying overall quantity.
If you modify quantity more than total order quantity then your order will be canceled.
Consider a scenario wherein you placed an order for quantity 1000 and 300 is executed and now if you edit your quantity to 300 then order will be canceled and if you modify it to 400 then your total order quantity becomes 400.
If you increase quantity to more than original order quantity then order will be canceled.
Great! Thanks a lot for the answer.
I'll summarise, please correct me if I'm wrong.
If I get a partial fill of 300 out of 1000:
A: If I modify quantity to 300, then the order is closed. No further execution.
B: If I modify it to 400, the order quantity is adjusted and waits for another 100 shares fill.
Yes, you are right that is the expected behavior.
, I think there is a bug in order modification.
I came across this scenario:
I put a limit sell order for 50 quantity with disclosed quantity as 6. After a while 48 got filled. With 2 quantity remaining, I tried to modify the limit price of the order (without quantity and disclosed quantity in order to keep it unchanged) but received an error "Disclosed quantity should be greater than 10% of total order quantity for NSE."
What is wrong here?
Can you paste the exact params you sent here?
BTW you can send only a new price, there is no need to send everything.