Simplify stoploss behavior by combining more commonalities

This commit is contained in:
Matthias
2022-10-26 07:14:33 +02:00
parent 6e0ca058f4
commit 255f38537e
4 changed files with 5 additions and 26 deletions

View File

@@ -113,5 +113,4 @@ def test_stoploss_adjust_huobi(mocker, default_conf):
assert exchange.stoploss_adjust(1501, order, 'sell')
assert not exchange.stoploss_adjust(1499, order, 'sell')
# Test with invalid order case
order['type'] = 'stop_loss'
assert not exchange.stoploss_adjust(1501, order, 'sell')
assert exchange.stoploss_adjust(1501, order, 'sell')