From 5cb4a65cbd67b36e8b10ef34d999d62f2ad9ac8a Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 5 Nov 2024 07:03:44 +0100 Subject: [PATCH] fix: use order.safe_amount for "order created" entry message --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index a66f557ab..260682529 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1214,7 +1214,7 @@ class FreqtradeBot(LoggingMixin): "base_currency": self.exchange.get_pair_base_currency(trade.pair), "quote_currency": self.exchange.get_pair_quote_currency(trade.pair), "fiat_currency": self.config.get("fiat_display_currency", None), - "amount": order.safe_amount_after_fee if fill else (order.amount or trade.amount), + "amount": order.safe_amount_after_fee if fill else (order.safe_amount or trade.amount), "open_date": trade.open_date_utc or datetime.now(timezone.utc), "current_rate": current_rate, "sub_trade": sub_trade,