fix return value from info hash: value is in string

This commit is contained in:
misagh 2019-01-16 16:15:36 +01:00
parent 50bc20134f
commit 611b48dbb9
2 changed files with 2 additions and 2 deletions

View File

@ -665,7 +665,7 @@ class FreqtradeBot(object):
:return: None
"""
if trade.stop_loss > order['info']['stopPrice']:
if trade.stop_loss > float(order['info']['stopPrice']):
# we check if the update is neccesary
update_beat = self.strategy.order_types['stoploss_on_exchange_interval']
if (datetime.utcnow() - trade.stoploss_last_update).total_seconds() > update_beat:

View File

@ -1066,7 +1066,7 @@ def test_handle_stoploss_on_exchange_trailing(mocker, default_conf, fee, caplog,
'price': 3,
'average': 2,
'info': {
'stopPrice': 0.000011134
'stopPrice': '0.000011134'
}
})