Pritesh-Mhatre / autotrader

AutoTrader - Automated trading, Realtime Data & bulk order software for UPSTOX, KITE, ODIN, NOW & NEST (client & dealer) terminals.
GNU General Public License v3.0
3 stars 0 forks source link

Delay in processing orders #107

Closed Pritesh-Mhatre closed 5 years ago

Pritesh-Mhatre commented 5 years ago

Reporters: pandianr2005@gmail.com, nagaraja.hr@gmail.com

Sometimes AutoTrader takes time to process the commands read from orders.csv file. It is difficult to reproduce as it does not happen every time.

Progress so far:

Pritesh-Mhatre commented 5 years ago

The problem is not reading the file. The issue is once reading is complete, execution halts for some time before processing lines from the file.

Pritesh-Mhatre commented 5 years ago

We did a lot of testing new way of processing lines, but not even once we saw delay. Now the only way to make any progress; on this is to ask the users to run different version of processing code. We will send new code to users and wait for their findings.

Pritesh-Mhatre commented 5 years ago

We have checked everything, there is only 1 likely issue.

Getting database connection might take time sometimes.

Now the fix for above issue is not an easy one as it would require modifying critical components of AutoTrader. We cannot take this risk at the moment.

The new proposed AutoTraderWeb software which we are working on will completely change the way orders are saved. So this issue may not happen in newer version and even if it does happen; we will be able to investigate it because of enhanced and simpler architecture of the the new software.

We have closed the issue for now, we can reopen it when AutoTraderWeb goes live in 6 months time.