From 18cdd5168015dd39b3cd7cb46219f45744b8a492 Mon Sep 17 00:00:00 2001 From: Frederic Fortier Date: Wed, 7 Feb 2018 22:16:32 -0500 Subject: [PATCH] BUG: fixed issue with order processing --- catalyst/exchange/ccxt/ccxt_exchange.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/catalyst/exchange/ccxt/ccxt_exchange.py b/catalyst/exchange/ccxt/ccxt_exchange.py index 7a118a52..9cf6c6f4 100644 --- a/catalyst/exchange/ccxt/ccxt_exchange.py +++ b/catalyst/exchange/ccxt/ccxt_exchange.py @@ -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