Last updated 20 June 2026
Order modification not working
Every broker limits how many times a single order can be modified. Some brokers, for example, do not allow more than 20 modifications on one order. Once you cross that limit, the broker stops accepting changes. The fix is to cancel that order and place a fresh order instead.
Why this happens
Each stock broker sets a cap on the number of times one order can be modified. The exact number changes from broker to broker. As an example, one leading broker in India does not let you modify an order more than 20 times.
Because this limit is set by the broker, the value is different for each one. Ask your broker for their exact limit.
Solution
Make sure your code does not send a modify request for the same order beyond the limit set by your broker. When you hit the limit, do this instead:
- Cancel the order that can no longer be modified.
- Place a fresh order with the values you wanted.
If you are still within the limit and the modification is failing, report it to our support team.