temp test commit

This commit is contained in:
misagh
2019-01-09 16:23:13 +01:00
parent 1a27258469
commit e025ad3918
2 changed files with 69 additions and 1 deletions

View File

@@ -656,12 +656,14 @@ class FreqtradeBot(object):
# This is a guard: there is a situation where market is going doing down fast
# the stoploss on exchange checked previously is not hit but
# it is too late and too risky to cancel the previous stoploss
if trade.stop_loss <= self.exchange.get_ticker(trade.pair)['bid']:
if trade.stop_loss > self.exchange.get_ticker(trade.pair)['bid']:
logger.info('stoploss on exchange update: too risky to update stoploss as '
'current best bid price (%s) is higher than stoploss value (%s)',
self.exchange.get_ticker(trade.pair)['bid'], trade.stop_loss)
return result
print(trade.stop_loss)
print(order['info']['stopPrice'])
if trade.stop_loss > order['info']['stopPrice']:
# we check also if the update is neccesary
update_beat = self.strategy.order_types['stoploss_on_exchange_interval']