From 437fadc2588c19fce6dc1edc957d7dbb3b0a8f3a Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Tue, 12 Oct 2021 10:49:07 +0300 Subject: [PATCH] Fix profitable trade registering as a loss due to fees. --- tests/test_freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_freqtradebot.py b/tests/test_freqtradebot.py index 6c51e7fe2..53ef18733 100644 --- a/tests/test_freqtradebot.py +++ b/tests/test_freqtradebot.py @@ -3322,7 +3322,7 @@ def test_execute_trade_exit_insufficient_funds_error(default_conf_usdt, ticker_u @ pytest.mark.parametrize("is_short", [False, True]) @ pytest.mark.parametrize('profit_only,bid,ask,handle_first,handle_second,sell_type', [ # Enable profit - (True, 2.19, 2.2, False, True, SellType.SELL_SIGNAL.value), + (True, 2.18, 2.2, False, True, SellType.SELL_SIGNAL.value), # Disable profit (False, 3.19, 3.2, True, False, SellType.SELL_SIGNAL.value), # Enable loss