comments added for TSL on exchange function

This commit is contained in:
misagh 2019-01-16 15:00:35 +01:00
parent a44f781284
commit aa03a864f7
1 changed files with 8 additions and 0 deletions

View File

@ -657,6 +657,14 @@ class FreqtradeBot(object):
return result
def handle_trailing_stoploss_on_exchange(self, trade: Trade, order):
"""
Check to see if stoploss on exchange should be updated
in case of trailing stoploss on exchange
:param Trade: Corresponding Trade
:param order: Current on exchange stoploss order
:return: None
"""
if trade.stop_loss > order['info']['stopPrice']:
# we check if the update is neccesary
update_beat = self.strategy.order_types['stoploss_on_exchange_interval']