From 0f6272f37a731789f65ba7736c871c65baba7b43 Mon Sep 17 00:00:00 2001 From: anor Date: Mon, 9 Mar 2026 06:34:45 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=20=D0=B8=20=D1=81=D1=82=D0=BE=D0=BF=20=D0=BF=D0=BE=D0=B7=D0=B8?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20=D0=B2=20/status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- src/remizov_trader/notify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/remizov_trader/notify.py b/src/remizov_trader/notify.py index 9a59782..e8ddaac 100644 --- a/src/remizov_trader/notify.py +++ b/src/remizov_trader/notify.py @@ -65,7 +65,10 @@ def format_status_report(cfg, conn) -> str: pos = get_open_position(conn, a["ticker"]) if pos: d = "LONG" if pos["direction"] == 1 else "SHORT" - open_positions.append(f" {a['ticker']}: {d} @ ${pos['entry_price']:,.2f}") + pv = pos["pos_value"] + stop = pos["stop_price"] + open_positions.append(f" {a['ticker']}: {d} @ ${pos['entry_price']:,.2f} " + f"(${pv:,.2f}, stop ${stop:,.2f})") total_pnl = total_equity - total_initial total_pct = (total_equity / total_initial - 1) * 100 if total_initial > 0 else 0