trailing stop loss on exchange extracted to a separate function
This commit is contained in:
parent
bfb7121583
commit
6d588b3b0b
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user