Skip to content

Commit

Permalink
Full support for kraken stoploss
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Feb 19, 2020
1 parent 2d2fd96 commit d22384c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ def update(self, order: Dict) -> None:
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}')
Expand Down

0 comments on commit d22384c

Please sign in to comment.