Could not acquire trading lock
Last updated 20 June 2026
Could not acquire trading lock
AutoTrader Web takes a trading lock on an account before every operation so only one action runs on that account at a time. If your broker's server does not respond within the wait time, the lock is not obtained and you see this error. The fix is simple: just retry the failed operation.
What this error means
AutoTrader Web shows this error when it cannot get a trading lock for the account you are using.
Before any operation — placing, modifying or cancelling an order, or reading positions, margins or orders — AutoTrader Web first takes a trading lock on that account. This makes sure that only one operation runs for any account at any moment.
The lock has two benefits:
- It keeps the account’s data consistent.
- It helps avoid the “Too many requests” error from your stock broker.
When an operation finishes, the lock is released so the next operation can take it.
Why it happens
The problem starts when your broker’s server does not respond within the set time, which is 60 seconds. Any operation that cannot get the lock waits up to 60 seconds. If that wait ends and the lock is still not free, you get this error.
This error is most common in these cases:
| Broker | Cause |
|---|---|
| Finvasia Scalpert | NoHttpResponseException: staging.finvasia.com:3000 failed to respond |
| Upstox | AutoTrader fails to receive a response from the Upstox server |
Solution
Just retry the failed operation.
The root cause is your broker’s server, which failed to complete the operation within 90 seconds. So the real fix needs to be done on the broker’s side, which is hard to get them to do.
For related help, see What to do when one of the brokers has a problem and Request timed out error from trading platform.