diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index c74b32ad2..588504894 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -402,8 +402,11 @@ class Exchange(object): return self._dry_run_open_orders[order_id] try: - return self._api.create_order(pair, 'stop_loss_limit', 'sell', + order = self._api.create_order(pair, 'stop_loss_limit', 'sell', amount, rate, {'stopPrice': stop_price}) + logger.info('stoploss limit order added for %s. ' + 'stop price: %s. limit: %s' % (pair,stop_price,rate)) + return order except ccxt.InsufficientFunds as e: raise DependencyException( diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 682a850b8..dc5f3d8ad 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -670,6 +670,8 @@ class FreqtradeBot(object): update_beat = self.strategy.order_types['stoploss_on_exchange_interval'] if (datetime.utcnow() - trade.stoploss_last_update).total_seconds() > update_beat: # cancelling the current stoploss on exchange first + logger.info('Trailing stoploss: cancelling current stoploss on exchange ' + 'in order to add another one ...') if self.exchange.cancel_order(order['id'], trade.pair): # creating the new one stoploss_order_id = self.exchange.stoploss_limit(