From fade66afd969db4ce254c525d2db454dc26a0ec3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 21 Nov 2025 06:47:04 +0100 Subject: [PATCH] fix: ensure we always have a price when checking stops --- freqtrade/exchange/exchange.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 1b0946987..60f4d5fdd 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -104,6 +104,7 @@ from freqtrade.misc import ( deep_merge_dicts, file_dump_json, file_load_json, + safe_value_fallback, safe_value_fallback2, ) from freqtrade.util import FtTTLCache, PeriodicCache, dt_from_ts, dt_now @@ -1292,7 +1293,7 @@ class Exchange: pair = order["symbol"] if not orderbook and self.exchange_has("fetchL2OrderBook"): orderbook = self.fetch_l2_order_book(pair, 20) - price = order[self._ft_has["stop_price_prop"]] + price = safe_value_fallback(order, self._ft_has["stop_price_prop"], "price") crossed = self._dry_is_price_crossed( pair, order["side"], price, orderbook, is_stop=True )