mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-18 12:20:12 +08:00
DOC: code documentation
This commit is contained in:
@@ -209,7 +209,6 @@ class ExchangeBlotter(Blotter):
|
||||
log.debug('found open order: {}'.format(order.id))
|
||||
|
||||
transactions = exchange.process_order(order)
|
||||
# TODO: not letting partial orders through because of calculation issues
|
||||
if transactions and order.status == ORDER_STATUS.FILLED:
|
||||
avg_price = np.average(
|
||||
a=[t.price for t in transactions],
|
||||
@@ -247,8 +246,6 @@ class ExchangeBlotter(Blotter):
|
||||
|
||||
for order, txn in self.check_open_orders():
|
||||
order.dt = txn.dt
|
||||
|
||||
# TODO: is the commission already on the order object?
|
||||
transactions.append(txn)
|
||||
|
||||
if not order.open:
|
||||
|
||||
Reference in New Issue
Block a user