Added test_update_funding_fees in freqtradebot, test currently fails

This commit is contained in:
Sam Germain
2021-11-03 22:52:37 -06:00
parent 3de42da29a
commit 8a4236198f
4 changed files with 133 additions and 40 deletions

View File

@@ -268,7 +268,8 @@ class FreqtradeBot(LoggingMixin):
def update_funding_fees(self):
if self.trading_mode == TradingMode.FUTURES:
for trade in Trade.get_open_trades():
trades = Trade.get_open_trades()
for trade in trades:
if self.config['dry_run']:
funding_fees = self.exchange.calculate_funding_fees(
trade.pair,