Added todo to freqtradebot._safe_exit_amount
This commit is contained in:
parent
edc0e9c75f
commit
84dea0339b
@ -1345,7 +1345,8 @@ class FreqtradeBot(LoggingMixin):
|
||||
trade_base_currency = self.exchange.get_pair_base_currency(pair)
|
||||
wallet_amount = self.wallets.get_free(trade_base_currency)
|
||||
logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}")
|
||||
if wallet_amount >= amount or self.trading_mode is TradingMode.FUTURES:
|
||||
# TODO-lev: Get wallet amount + value of positions
|
||||
if wallet_amount >= amount or self.trading_mode == TradingMode.FUTURES:
|
||||
# A safe exit amount isn't needed for futures, you can just exit/close the position
|
||||
return amount
|
||||
elif wallet_amount > amount * 0.98:
|
||||
|
Loading…
Reference in New Issue
Block a user