mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 18:37:40 +08:00
BUG: fixed issue with order processing
This commit is contained in:
@@ -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