mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-13 16:21:51 +08:00
MAINT: There is no place where orders are put in out of place
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user