fix: align profit calculations between best pair and /performance

part of #11236
This commit is contained in:
Matthias
2025-01-26 20:16:27 +01:00
parent eb24d11259
commit 99b2857d3d
4 changed files with 8 additions and 8 deletions

View File

@@ -665,6 +665,7 @@ class RPC:
"best_pair": best_pair[0] if best_pair else "",
"best_rate": round(best_pair[1] * 100, 2) if best_pair else 0, # Deprecated
"best_pair_profit_ratio": best_pair[1] if best_pair else 0,
"best_pair_profit_abs": best_pair[2] if best_pair else 0,
"winning_trades": winning_trades,
"losing_trades": losing_trades,
"profit_factor": profit_factor,