jacktrades/JamochaTrade — Issue #50: process_orders does not process all orders
Author: jacktrades
Created: 2011-11-11 07:43:51+00:00
State: open

Steps to reproduce:

Enter 100 share limit order a number of times.
Click next day.
Not all orders will be filled the next day, some will wait till the day after, or even the days after that.

I'm guessing this has to do with removing orders using splice(i, 1) in the for loop, where i is an index value which is no longer valid.