safe_sell_amount -> safe_exit_amount

This commit is contained in:
Sam Germain
2021-09-08 01:20:52 -06:00
parent 880474594e
commit aac05029e1
2 changed files with 7 additions and 7 deletions

View File

@@ -1039,7 +1039,7 @@ class FreqtradeBot(LoggingMixin):
)
return reason
def _safe_sell_amount(self, pair: str, amount: float) -> float:
def _safe_exit_amount(self, pair: str, amount: float) -> float:
"""
Get sellable amount.
Should be trade.amount - but will fall back to the available amount if necessary.
@@ -1111,7 +1111,7 @@ class FreqtradeBot(LoggingMixin):
# but we allow this value to be changed)
order_type = self.strategy.order_types.get("forcesell", order_type)
amount = self._safe_sell_amount(trade.pair, trade.amount)
amount = self._safe_exit_amount(trade.pair, trade.amount)
time_in_force = self.strategy.order_time_in_force['sell']
if not strategy_safe_wrapper(self.strategy.confirm_trade_exit, default_retval=True)(