Skip to content

Commit

Permalink
Fix f-string ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
froggleston committed Jul 17, 2024
1 parent b46111c commit 9a8981e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ftui/ftui_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def bot_general_metrics_table(client) -> str:

row_data = [
(
f"ROI closed trades",
"ROI closed trades",
f"{round(t['profit_closed_coin'], 2)} {config['stake_currency']} "
f"({chr(0x03BC)} {round(t['profit_closed_ratio_mean']*100, 2)}%) "
f"(∑ {round(t['profit_all_ratio_sum']*100, 2)}%)",
Expand All @@ -431,17 +431,17 @@ def bot_general_metrics_table(client) -> str:
f"{round(t['profit_all_coin'], 2)} {config['stake_currency']} "
f"({chr(0x03BC)} {round(t['profit_all_ratio_mean']*100, 2)}%)",
),
(f"Total Trade count", f"{trade_count}"),
(f"Bot started", f"{t['bot_start_date']}"),
(f"First Trade opened", f"{t['first_trade_date']}"),
(f"Latest Trade opened", f"{t['latest_trade_date']}"),
(f"Win / Loss", f"{t['winning_trades']} / {t['losing_trades']}"),
(f"Winrate", f"{round(t['winrate']* 100, 3)}%"),
(f"Expectancy (ratio)", f"{round(t['expectancy'], 2)} ({round(t['expectancy_ratio'], 2)})"),
(f"Avg. Duration", f"{t['avg_duration']}"),
(f"Best performing", f"{t['best_pair']}: {t['best_rate']}%"),
(f"Trading volume", f"{round(t['trading_volume'], 2)} {config['stake_currency']}"),
(f"Profit factor", f"{profit_factor}"),
("Total Trade count", f"{trade_count}"),
("Bot started", f"{t['bot_start_date']}"),
("First Trade opened", f"{t['first_trade_date']}"),
("Latest Trade opened", f"{t['latest_trade_date']}"),
("Win / Loss", f"{t['winning_trades']} / {t['losing_trades']}"),
("Winrate", f"{round(t['winrate']* 100, 3)}%"),
("Expectancy (ratio)", f"{round(t['expectancy'], 2)} ({round(t['expectancy_ratio'], 2)})"),
("Avg. Duration", f"{t['avg_duration']}"),
("Best performing", f"{t['best_pair']}: {t['best_rate']}%"),
("Trading volume", f"{round(t['trading_volume'], 2)} {config['stake_currency']}"),
("Profit factor", f"{profit_factor}"),
(
"Max Drawdown",
f"{round(t['max_drawdown']*100, 2)}% "
Expand Down

0 comments on commit 9a8981e

Please sign in to comment.