Fix profitable trade registering as a loss due to fees.

This commit is contained in:
Rokas Kupstys 2021-10-12 10:49:07 +03:00
parent 2e7adb99da
commit 437fadc258
1 changed files with 1 additions and 1 deletions

View File

@ -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