Test keyerror case for funding_Fee calculation

This commit is contained in:
Matthias
2022-09-08 07:24:57 +02:00
parent 4e15611b05
commit 39b6cadd14
2 changed files with 14 additions and 6 deletions

View File

@@ -2514,7 +2514,7 @@ class Exchange:
funding_rates = candle_histories[funding_comb]
mark_rates = candle_histories[mark_comb]
except KeyError:
raise ExchangeError("Could not find funding rates") from None
raise ExchangeError("Could not find funding rates.") from None
funding_mark_rates = self.combine_funding_and_mark(
funding_rates=funding_rates, mark_rates=mark_rates)