trailing stop loss on exchange extracted to a separate function

This commit is contained in:
misagh 2019-01-16 14:28:52 +01:00
parent bfb7121583
commit 6d588b3b0b
2 changed files with 1 additions and 2 deletions

View File

@ -652,7 +652,7 @@ class FreqtradeBot(object):
# if trailing stoploss is enabled we check if stoploss value has changed
# in which case we cancel stoploss order and put another one with new
# value immediately
handle_trailing_stoploss_on_exchange(trade, order)
self.handle_trailing_stoploss_on_exchange(trade, order)
return result

View File

@ -1080,7 +1080,6 @@ def test_handle_stoploss_on_exchange_trailing(mocker, default_conf, fee, caplog,
'last': 0.00002344
}))
cancel_order_mock = MagicMock()
stoploss_order_mock = MagicMock()
mocker.patch('freqtrade.exchange.Exchange.cancel_order', cancel_order_mock)