AutoTrader fails to receive a response after placing an order. AutoTrader is unaware at that moment about whether the order was placed or there was an error.
AutoTrader cannot do much in this case, but it tries to fetch all orders and see if the order entered is present in the latest orders from trading platform. But if it does not find the order, then it returns above error.
Cause: Whenever you send an invalid order to Upstox via AutoTrader, this problem starts happening.
How to identify an invalid order? Simply try to enter exactly same order on Upstox web platform. You will most likely see that the system will not allow you to place that order due to invalid properties.
Some examples are:
- Invalid stock symbol or exchange
- Invalid variety or order type
- Invalid trigger price in stoploss orders
- Out of range values for target, stoploss & trailing stoploss in bracket order
Other rare causes:
- Upstox server under heavy load during market start
- Slowness in network
- Upstox servers under heavy load
- Issues on Upstox servers
Modify your code or orders so that they contain valid attributes. Try entering your orders on Upstox trading platform directly, it will most likely fail validation. Then correct your code/orders; so that they contain valid attributes like (exchange, symbol, order type, variety, (target s/l & trailing s/l in case of a bracket order).
Also make sure that you are on a stable internet connection.
Leave A Comment