@devries-cameron20 / open-alice / commits / 5781432
Fork 0

Alice — an open-source AI trading bot covering equities, crypto, commodities, forex, and macro

Fix ruff lint errors: remove unused import, f-string placeholder, line length

Camo67 committed Oct 12, 2026 at 11:59 UTC 5781432e52beee62249377ae0804a8bac4c008bb
2 files changed +6 -3
src/open_alice/cli.py
+6 -2
@@ -97,10 +97,14 @@ def _run_paper(args: argparse.Namespace) -> None:
97 total_pnl = sum(t.get("pnl", 0) for t in portfolio.trades)
98 print(f" Total P&L: ${total_pnl:>10,.2f}")
99
100 - print(f"\n --- Trade Log ---")
100 + print("\n --- Trade Log ---")
101 for t in portfolio.trades[:20]:
102 pnl_str = f" P&L: ${t['pnl']:,.2f}" if "pnl" in t else ""
103 - print(f" {t['time'].strftime('%Y-%m-%d %H:%M')} | {t['action']:>4} | {t.get('symbol', ''):>6} | {t.get('shares', 0):>6} @ ${t.get('price', 0):>8.2f}{pnl_str}")
103 + print(
104 + f" {t['time'].strftime('%Y-%m-%d %H:%M')} | {t['action']:>4} | "
105 + f"{t.get('symbol', ''):>6} | {t.get('shares', 0):>6} @ "
106 + f"${t.get('price', 0):>8.2f}{pnl_str}"
107 + )
108
109 if len(portfolio.trades) > 20:
110 print(f" ... and {len(portfolio.trades) - 20} more trades")
src/open_alice/strategies/rsi.py
-1
@@ -2,7 +2,6 @@
2
3 from __future__ import annotations
4
5 -import numpy as np
5 import pandas as pd
6
7