From 8f41f943b44dbda75e38546ee5c7a5d0ab88d553 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 21 Sep 2022 06:42:55 +0200 Subject: [PATCH] Fix 0.0 amount message wording --- freqtrade/freqtradebot.py | 2 +- tests/test_integration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 539bbcb38..a4bbf291c 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -594,7 +594,7 @@ class FreqtradeBot(LoggingMixin): amount = trade.amount if amount == 0.0: - logger.info("Amount to sell is 0.0 due to exchange limits - not selling.") + logger.info("Amount to exit is 0.0 due to exchange limits - not exiting.") return remaining = (trade.amount - amount) * current_exit_rate diff --git a/tests/test_integration.py b/tests/test_integration.py index 77ed822d1..a7b4fbdd3 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -521,4 +521,4 @@ def test_dca_exiting(default_conf_usdt, ticker_usdt, fee, mocker, caplog) -> Non assert trade.orders[-1].ft_order_side == 'sell' assert pytest.approx(trade.stake_amount) == 40.198 assert trade.is_open - assert log_has_re('Amount to sell is 0.0 due to exchange limits - not selling.', caplog) + assert log_has_re('Amount to exit is 0.0 due to exchange limits - not exiting.', caplog)