diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index 64663a2fd..592a88acb 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -256,7 +256,7 @@ class Trade(_DECL_BASE): elif order_type == 'stop_loss_limit': self.stoploss_order_id = None logger.info('STOP_LOSS_LIMIT is hit for %s.', self) - self.close(order['price']) + self.close(order['average']) else: raise ValueError(f'Unknown order type: {order_type}') cleanup()