Scalpert servers are not 100% reliable. Most times they work fine, but on some occasions they simply do not respond. Although they end up placing the order which was sent; but fail to return a response which normally comes back in 0.2-0.3 seconds.
Sample Investigation
- Order placed but no response received (normally the response comes with 0.2 seconds)
- After waiting for 5 seconds, the system went for an expensive route. (Fetch all orders and try to find, but you can see the error Finvasia server failed to respond)
- Remember, this only happens sometimes not every time
- Not much AutoTrader can do now, so it sent you an error.
Logs
2020-07-30 11:00:10.193 DEBUG : Placing order: [[XX1122 : XX1122]] Order [REGULAR,NSE,HEROMOTOCO-EQ,INTRADAY,SELL,LIMIT,1,2752.7,0.0,0b232975-9def-4d5f-a59c-c7535e702330]
2020-07-30 11:00:15.195 WARN : Using expensive route to extract order id: Order [REGULAR,NSE,HEROMOTOCO-EQ,INTRADAY,SELL,LIMIT,1,2752.7,0.0,0b232975-9def-4d5f-a59c-c7535e702330]
2020-07-30 11:00:19.434 ERROR : Error reading data from Scalpert:
org.apache.http.NoHttpResponseException: staging.finvasia.com:3000 failed to respond
2020-07-30 11:00:19.439 ERROR : Order place failure: [[XX1122 : XX1122]] Order [REGULAR,NSE,HEROMOTOCO-EQ,INTRADAY,SELL,LIMIT,1,2752.7,0.0,0b232975-9def-4d5f-a59c-c7535e702330]
2020-07-30 11:00:19.440 ERROR : Order failure reason: Order request sent, but could not get status from Scalpert server.
Solution
Report it to Finvasia. This needs a fix on their end.