Set Requested_close_rate to stoploss when stoploss_on_exchange was hit
This commit is contained in:
parent
954963b40e
commit
e2bcaa4d75
@ -266,6 +266,7 @@ class Trade(_DECL_BASE):
|
||||
logger.info('%s_SELL has been fulfilled for %s.', order_type.upper(), self)
|
||||
elif order_type == 'stop_loss_limit':
|
||||
self.stoploss_order_id = None
|
||||
self.close_rate_requested = self.stop_loss
|
||||
logger.info('STOP_LOSS_LIMIT is hit for %s.', self)
|
||||
self.close(order['average'])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user