From d1998f7ed0bf2f58daf439d367fa25b7319f3aa1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 2 Aug 2022 20:16:01 +0200 Subject: [PATCH] Fix forceexit calling --- freqtrade/rpc/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 22effb849..7694b2414 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -697,7 +697,7 @@ class RPC: sub_trade_amt=sub_amount) def _rpc_force_exit(self, trade_id: str, ordertype: Optional[str] = None, *, - amount: Optional[float]) -> Dict[str, str]: + amount: Optional[float] = None) -> Dict[str, str]: """ Handler for forceexit . Sells the given trade at current price @@ -710,7 +710,7 @@ class RPC: if trade_id == 'all': # Execute sell for all open orders for trade in Trade.get_open_trades(): - self.__exec_force_exit(trade) + self.__exec_force_exit(trade, ordertype) Trade.commit() self._freqtrade.wallets.update() return {'result': 'Created sell orders for all open trades.'}