From 12206f028b00fff572b0512495b87d75b0b3081a Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 Dec 2025 07:16:28 +0100 Subject: [PATCH] chore: comment wording improvements --- freqtrade/freqtradebot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index eae16c158..80de52025 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -2011,14 +2011,14 @@ class FreqtradeBot(LoggingMixin): def _safe_exit_amount(self, trade: Trade, pair: str, amount: float) -> float: """ - Get sellable amount. + Get exitable amount. Should be trade.amount - but will fall back to the available amount if necessary. This should cover cases where get_real_amount() was not able to update the amount for whatever reason. :param trade: Trade we're working with - :param pair: Pair we're trying to sell + :param pair: Pair we're trying to exit :param amount: amount we expect to be available - :return: amount to sell + :return: amount to exit :raise: DependencyException: if available balance is not within 2% of the available amount. """ # Update wallets to ensure amounts tied up in a stoploss is now free! @@ -2058,7 +2058,7 @@ class FreqtradeBot(LoggingMixin): """ Executes a trade exit for the given trade and limit :param trade: Trade instance - :param limit: limit rate for the sell order + :param limit: limit rate for the exit order :param exit_check: CheckTuple with signal and reason :return: True if it succeeds False """