From 93bde7dc4676314a2efcbf4a2087a736462e8758 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 12 Dec 2025 06:52:11 +0100 Subject: [PATCH 1/2] fix: support binance algo orders closes #12610 --- freqtrade/exchange/binance.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/binance.py b/freqtrade/exchange/binance.py index 7d9c616bb..37c355d4d 100644 --- a/freqtrade/exchange/binance.py +++ b/freqtrade/exchange/binance.py @@ -17,7 +17,7 @@ from freqtrade.exchange.binance_public_data import ( download_archive_trades, ) from freqtrade.exchange.common import retrier -from freqtrade.exchange.exchange_types import FtHas, Tickers +from freqtrade.exchange.exchange_types import CcxtOrder, FtHas, Tickers from freqtrade.exchange.exchange_utils_timeframe import timeframe_to_msecs from freqtrade.misc import deep_merge_dicts, json_load from freqtrade.util import FtTTLCache @@ -145,6 +145,20 @@ class Binance(Exchange): except ccxt.BaseError as e: raise OperationalException(e) from e + def fetch_stoploss_order( + self, order_id: str, pair: str, params: dict | None = None + ) -> CcxtOrder: + if self.trading_mode == TradingMode.FUTURES: + params = params or {} + params.update({"stop": True}) + return self.fetch_order(order_id, pair, params) + + def cancel_stoploss_order(self, order_id: str, pair: str, params: dict | None = None) -> dict: + if self.trading_mode == TradingMode.FUTURES: + params = params or {} + params.update({"stop": True}) + return self.cancel_order(order_id=order_id, pair=pair, params=params) + def get_historic_ohlcv( self, pair: str, From 6d2c30abca93c0f8767ea2e7620b45c73de660a2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 12 Dec 2025 06:54:29 +0100 Subject: [PATCH 2/2] chore: bump ccxt to 4.5.27 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6cd25e43b..d2dcb63eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ ft-pandas-ta==0.3.16 ta-lib==0.6.8 technical==1.5.3 -ccxt==4.5.26 +ccxt==4.5.27 cryptography==46.0.3 aiohttp==3.13.2 SQLAlchemy==2.0.44