mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-30 11:23:20 +08:00
BUG: fixed issue with order processing
This commit is contained in:
1 parent
1ad26b0c39
commit
18cdd51680
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user