MAINT: There is no place where orders are put in out of place

This commit is contained in:
Dale Jung
2015-02-24 23:18:55 -05:00
committed by Eddie Hebert
parent 7a5af8a098
commit 4c5f38d7b1
+1 -1
View File
@@ -20,6 +20,7 @@ from logbook import Logger
from collections import defaultdict
from six import text_type
from six.moves import filter
import zipline.errors
import zipline.protocol as zp
@@ -199,7 +200,6 @@ class Blotter(object):
return
orders = self.open_orders[trade_event.sid]
orders = sorted(orders, key=lambda o: o.dt)
# Only use orders for the current day or before
current_orders = filter(
lambda o: o.dt <= trade_event.dt,