mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-29 13:00:42 +08:00
BUG: removing computation of partial order for now to avoid a calculation issue
This commit is contained in:
1 parent
50dc322230
commit
0ce624e6f6
1 file changed
+2
-1
@@ -209,7 +209,8 @@ class ExchangeBlotter(Blotter):
|
||||
log.debug('found open order: {}'.format(order.id))
|
||||
|
||||
transactions = exchange.process_order(order)
|
||||
if transactions:
|
||||
# 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],
|
||||
weights=[t.amount for t in transactions],
|
||||
|
||||
Reference in new issue
Block a user