mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
Don't handle case where base_currency is not set
(very old trades)
This commit is contained in:
@@ -494,7 +494,7 @@ class FreqtradeBot(LoggingMixin):
|
||||
send_msg=prev_trade_state != trade.is_open)
|
||||
else:
|
||||
trade.exit_reason = prev_exit_reason
|
||||
total = self.wallets.get_total(trade.base_currency)
|
||||
total = self.wallets.get_total(trade.base_currency) if trade.base_currency else 0
|
||||
if total < trade.amount:
|
||||
if total > trade.amount * 0.98:
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user