From d22384c7fba439a5cbe01099dd95844c59934474 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 19 Feb 2020 19:21:48 +0100 Subject: [PATCH] Full support for kraken stoploss --- freqtrade/persistence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 5b0046091..fa041abc3 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -318,10 +318,10 @@ class Trade(_DECL_BASE): elif order_type in ('market', 'limit') and order['side'] == 'sell': self.close(order['price']) logger.info('%s_SELL has been fulfilled for %s.', order_type.upper(), self) - elif order_type == 'stop_loss_limit': + elif order_type in ('stop_loss_limit', 'stop-loss'): self.stoploss_order_id = None self.close_rate_requested = self.stop_loss - logger.info('STOP_LOSS_LIMIT is hit for %s.', self) + logger.info('%s is hit for %s.', order_type.upper(), self) self.close(order['average']) else: raise ValueError(f'Unknown order type: {order_type}')