Update tests for funding-Fee exceptions

This commit is contained in:
Matthias
2022-09-08 07:19:17 +00:00
parent 791f61c089
commit 9ef0ffe277
2 changed files with 8 additions and 3 deletions

View File

@@ -740,11 +740,12 @@ class FreqtradeBot(LoggingMixin):
# This is a new trade
if trade is None:
funding_fees = 0.0
try:
funding_fees = self.exchange.get_funding_fees(
pair=pair, amount=amount, is_short=is_short, open_date=open_date)
except ExchangeError:
logger.warning("Could not update funding fee.")
logger.warning("Could not find funding fee.")
trade = Trade(
pair=pair,