function name refactored
This commit is contained in:
parent
43bafc391f
commit
108d9a1117
@ -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']
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user