• Home
  • Products
    • Login
    • Product Info
    • User Guide
    • Pricing
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
    • Terms & Conditions
  • Home
  • Products
    • Login
    • Product Info
    • User Guide
    • Pricing
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
    • Terms & Conditions
home/Knowledge Base/AutoTrader Web

Could not acquire trading lock

147 views February 7, 2024 stkadmin 0

AutoTrader Web throws this error when it cannot acquire a trading lock for the given account. See the explanation given below which should help you understand.

Every time AutoTrader Web tries to perform any operation (like place/modify/cancel order or read positions/margins/order etc.); it first tries to get a trading lock on that account. This is done on purpose to make sure that only one operation is executed for any given trading account at any given moment. It not only helps keep the account’s integrity intact but also helps avoid “Too many requests” error from your stock broker. Once an operation is over, the lock is released so that the next operation can acquire it.

Now the problem happens when your stock broker’s server does not respond with a given timeframe (which is set to 60 seconds). Any operation which cannot get the lock, will wait a maximum of 60 seconds. Once the wait expires and lock is not obtained; you will get this error.

Most common occurrence of this error is seen in:

  • Finvasia Scalpert
    • Cause: NoHttpResponseException: staging.finvasia.com:3000 failed to respond
  • Upstox
    • Cause: When AutoTrader fails to receive response from Upstox Server

Solution

Just retry the failed operation.

The root cause here is your broker’s server, which failed to complete operation within 90 seconds. So ideally a fix needs to be done on the broker’s side. It is hard to convince them.

Was this helpful?

Yes  No
Related Articles
  • Rejected Orders
  • API Key is wrong or user disabled
  • Self Explanatory
  • Failed to generate TOTP
  • Invalid Totp
  • Unsupported trading platform setup
AutoTrader Web
  • Could not acquire trading lock
  • Rejected Orders
  • API Key is wrong or user disabled
  • Self Explanatory
  • Failed to generate TOTP
  • Invalid Totp
View All 56  
Popular Articles
  • Upstox: Something went wrong
  • User Blocked Contact System Administrator
  • AB1007: Your user id or password is invalid
  • Kite: Incorrect `api_key` or `access_token`
  • Login failed: Invalid username or password
KB Categories
  • AmiBroker
  • AutoTrader Web

© 2025 Stocks Developer. All Rights Reserved.