ENH: new order management methods:

- get_open_orders
- get_order
- cancel
This commit is contained in:
fawce
2013-04-26 19:46:00 -04:00
parent afef4ea34c
commit f3cfc9623d
3 changed files with 32 additions and 19 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ class TradingAlgorithm(object):
self._recorded_vars[name] = value
def order(self, sid, amount, limit_price=None, stop_price=None):
self.blotter.order(sid, amount, limit_price, stop_price)
return self.blotter.order(sid, amount, limit_price, stop_price)
@property
def recorded_vars(self):