fix: убрать плечо из позиций (не хранится в БД)
Плечо показывается только в настройках. TF остаётся у позиций — он привязан к активу. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -136,7 +136,6 @@ def format_status_report(cfg, conn) -> str:
|
||||
if ac.ticker == a["ticker"]:
|
||||
_tf = ac.timeframe or cfg.timeframe
|
||||
break
|
||||
lev_str = f" {cfg.risk.leverage}x" if cfg.risk.leverage > 1 else ""
|
||||
entry = pos["entry_price"]
|
||||
stop = pos["stop_price"]
|
||||
size = pos["pos_value"]
|
||||
@@ -151,7 +150,7 @@ def format_status_report(cfg, conn) -> str:
|
||||
else:
|
||||
pnl_str = ""
|
||||
|
||||
lines.append(f" {a['ticker']} ({_tf}{lev_str}): {d}")
|
||||
lines.append(f" {a['ticker']} ({_tf}): {d}")
|
||||
lines.append(f" Вход: ${entry:,.2f} | Стоп: ${stop:,.2f} ({risk_pct:.1f}%)")
|
||||
lines.append(f" Размер: ${size:,.2f}{pnl_str}")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user