From cf70deaf8d7faed50a8bfbf7c0ca0ff605db4979 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 13 Mar 2023 19:41:39 +0100 Subject: [PATCH] Disallow negative liquidation prices part of #8300 --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 24fc8daa1..0e0c05cb1 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2785,7 +2785,7 @@ class Exchange: if is_short else isolated_liq + buffer_amount ) - return isolated_liq + return max(isolated_liq, 0.0) else: return None