From 321e52481c75b368b8335e1ab1879a230af2ee3f Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Mon, 14 Nov 2016 17:36:15 -0500 Subject: [PATCH] ENH: Blotter support for ordering a batch --- zipline/finance/blotter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zipline/finance/blotter.py b/zipline/finance/blotter.py index e0d26695..99e50eb4 100644 --- a/zipline/finance/blotter.py +++ b/zipline/finance/blotter.py @@ -114,6 +114,9 @@ class Blotter(object): return order.id + def order_batch(self, orders): + return [self.order(*order) for order in orders] + def cancel(self, order_id, relay_status=True): if order_id not in self.orders: return