logs added in case stop loss on exchange is hit

This commit is contained in:
misagh
2018-11-28 14:16:50 +01:00
parent da94e97c60
commit fb755880fa
2 changed files with 3 additions and 1 deletions

View File

@@ -255,6 +255,7 @@ class Trade(_DECL_BASE):
self.close(order['price'])
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'])
else:
raise ValueError(f'Unknown order type: {order_type}')