mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-08 14:38:14 +08:00
ENH: Blotter support for ordering a batch
This commit is contained in:
@@ -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