chore: only round to 2 for output, not for the saved file

This commit is contained in:
Matthias
2025-03-18 07:02:30 +01:00
parent ddd2e2cc3b
commit 7bc6a2279c
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ def text_table_periodic_breakdown(
d["date"],
d.get("trades", "N/A"),
fmt_coin(d["profit_abs"], stake_currency, False),
d.get("profit_factor", "N/A"),
round(d["profit_factor"], 2) if "profit_factor" in d else "N/A",
generate_wins_draws_losses(d["wins"], d["draws"], d.get("losses", d.get("loses", 0))),
]
for d in days_breakdown_stats

View File

@@ -245,7 +245,7 @@ def generate_periodic_breakdown_stats(
"draws": draws,
"losses": losses,
"trades": trades,
"profit_factor": round(profit_factor, 2),
"profit_factor": round(profit_factor, 8),
}
)
return stats