mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-30 13:10:53 +08:00
ENH: Blotter support for ordering a batch
This commit is contained in:
1 parent
86c4c27a6a
commit
321e52481c
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user