function name refactored

This commit is contained in:
misagh 2018-12-03 19:55:37 +01:00
parent 43bafc391f
commit 108d9a1117
2 changed files with 2 additions and 2 deletions

View File

@ -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']

View File

@ -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