mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
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
|
||||
"""
|
||||
|
||||
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:
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user