From ad2aef09c40c0cf23e013b1d5e3bf18eed7dee74 Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Mon, 3 Mar 2025 14:55:15 -0400 Subject: [PATCH] chore: fix format --- freqtrade/freqtradebot.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 4626cb3e1..cfe789af7 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -2587,12 +2587,15 @@ class FreqtradeBot(LoggingMixin): max_custom_price_allowed = proposed_price + (proposed_price * cust_p_max_dist_r) # Bracket between min_custom_price_allowed and max_custom_price_allowed - final_price = max(min(valid_custom_price, max_custom_price_allowed), min_custom_price_allowed) - + final_price = max( + min(valid_custom_price, max_custom_price_allowed), min_custom_price_allowed + ) + # Log a warning if the custom price was adjusted by clamping. if final_price != valid_custom_price: logger.warning( - f"Custom price adjusted from {valid_custom_price} to {final_price} based on custom_price_max_distance_ratio of {cust_p_max_dist_r}." + f"Custom price adjusted from {valid_custom_price} to {final_price} based on " + "custom_price_max_distance_ratio of {cust_p_max_dist_r}." ) - + return final_price