fix return value from info hash: value is in string
This commit is contained in:
parent
50bc20134f
commit
611b48dbb9
@ -665,7 +665,7 @@ class FreqtradeBot(object):
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if trade.stop_loss > order['info']['stopPrice']:
|
if trade.stop_loss > float(order['info']['stopPrice']):
|
||||||
# we check if the update is neccesary
|
# we check if the update is neccesary
|
||||||
update_beat = self.strategy.order_types['stoploss_on_exchange_interval']
|
update_beat = self.strategy.order_types['stoploss_on_exchange_interval']
|
||||||
if (datetime.utcnow() - trade.stoploss_last_update).total_seconds() > update_beat:
|
if (datetime.utcnow() - trade.stoploss_last_update).total_seconds() > update_beat:
|
||||||
|
@ -1066,7 +1066,7 @@ def test_handle_stoploss_on_exchange_trailing(mocker, default_conf, fee, caplog,
|
|||||||
'price': 3,
|
'price': 3,
|
||||||
'average': 2,
|
'average': 2,
|
||||||
'info': {
|
'info': {
|
||||||
'stopPrice': 0.000011134
|
'stopPrice': '0.000011134'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user