fix: avoid warning for dry stoploss orders

This commit is contained in:
Matthias
2026-02-03 20:38:05 +01:00
parent 110b50a3cb
commit d73a173c6e

View File

@@ -1156,7 +1156,7 @@ class Exchange:
orderbook: OrderBook | None = None
if self.exchange_has("fetchL2OrderBook"):
orderbook = self.fetch_l2_order_book(pair, 20)
if ordertype == "limit" and orderbook:
if not stop_loss and ordertype == "limit" and orderbook:
# Allow a 1% price difference
allowed_diff = 0.01
if self._dry_is_price_crossed(pair, side, rate, orderbook, allowed_diff):