From 30398007cce364fb5c0b2548f9297dd7755fddb3 Mon Sep 17 00:00:00 2001 From: Kavinkumar <33546454+mkavinkumar1@users.noreply.github.com> Date: Wed, 23 Feb 2022 15:48:53 +0530 Subject: [PATCH] typo --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 58f0302c1..d6460f144 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -479,7 +479,7 @@ class FreqtradeBot(LoggingMixin): if stake_amount is not None and stake_amount < 0.0: # We should decrease our position self.execute_trade_exit(trade, current_rate, sell_reason=SellCheckTuple( - sell_type=SellType.CUSTOM_SELL), sub_trade_amt=stake_amount) + sell_type=SellType.CUSTOM_SELL), sub_trade_amt=-stake_amount) def _check_depth_of_market_buy(self, pair: str, conf: Dict) -> bool: """