diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 1e4b2e678..6baef76bc 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -306,7 +306,7 @@ class FreqtradeBot(object): pair, self.wallets.get_free(self.config['stake_currency']), self.wallets.get_total(self.config['stake_currency']) + - Trade.calc_total_open_trades_in_stake_currency() + Trade.total_open_trades_stakes() ) else: stake_amount = self.config['stake_amount'] diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index aeab63f22..71752d58e 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -352,7 +352,7 @@ class Trade(_DECL_BASE): return float(f"{profit_percent:.8f}") @staticmethod - def calc_total_open_trades_in_stake_currency() -> float: + def total_open_trades_stakes() -> float: """ Calculates total invested amount in open trades in stake currency