static method added

This commit is contained in:
misagh 2018-12-03 19:46:22 +01:00
parent b5192193fd
commit 43bafc391f

View File

@ -351,6 +351,7 @@ class Trade(_DECL_BASE):
profit_percent = (close_trade_price / open_trade_price) - 1 profit_percent = (close_trade_price / open_trade_price) - 1
return float(f"{profit_percent:.8f}") return float(f"{profit_percent:.8f}")
@staticmethod
def calc_total_open_trades_in_stake_currency() -> float: def calc_total_open_trades_in_stake_currency() -> float:
""" """
Calculates total invested amount in open trades Calculates total invested amount in open trades