BUG: fixed issue with order processing

This commit is contained in:
Frederic Fortier
2018-02-07 22:16:32 -05:00
parent 1ad26b0c39
commit 18cdd51680
+4 -1
View File
@@ -877,6 +877,7 @@ class CCXT(Exchange):
order.commission = exc_order.commission
order.filled = exc_order.amount
transactions = []
if exc_order.status == ORDER_STATUS.FILLED:
if order.amount > exc_order.amount:
log.warn(
@@ -898,7 +899,9 @@ class CCXT(Exchange):
order_id=order.id,
commission=order.commission,
)
return [transaction]
transactions.append(transaction)
return transactions
def process_order(self, order):
# TODO: move to parent class after tracking features in the parent