mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
Don't handle case where base_currency is not set
(very old trades)
This commit is contained in:
parent
a3e6abef8d
commit
8e5c574224
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user