Add trading volume to /profit output

This commit is contained in:
Matthias
2022-06-18 11:40:32 +02:00
parent 6a15d36d14
commit 40c9abc7e1
4 changed files with 20 additions and 0 deletions

View File

@@ -452,6 +452,7 @@ class RPC:
profit_all_ratio.append(profit_ratio)
best_pair = Trade.get_best_pair(start_date)
trading_volume = Trade.get_trading_volume(start_date)
# Prepare data to display
profit_closed_coin_sum = round(sum(profit_closed_coin), 8)
@@ -531,6 +532,7 @@ class RPC:
'profit_factor': profit_factor,
'max_drawdown': max_drawdown,
'max_drawdown_abs': max_drawdown_abs,
'trading_volume': trading_volume,
}
def _rpc_balance(self, stake_currency: str, fiat_display_currency: str) -> Dict: