diff --git a/agents/stock/workspace/scripts/behive_web.py b/agents/stock/workspace/scripts/behive_web.py index 5829489..b0c57c4 100644 --- a/agents/stock/workspace/scripts/behive_web.py +++ b/agents/stock/workspace/scripts/behive_web.py @@ -2522,6 +2522,13 @@ def _render_holding_row(r: dict, total_value: int, show_day_change: bool = False stock_cls = 'stock stock-xs' if _nlen >= 14 else ('stock stock-sm' if _nlen >= 10 else 'stock') code = html.escape(r.get('code', '') or '') accounts = html.escape('+'.join(r.get('accounts', []))) + # 표시용 계좌명 — '가희_' 등 owner 접두 떼고 유형(일반/ISA)만, 중복 제거, '·' 구분. + _acct_types: list[str] = [] + for _lb in r.get('accounts', []): + _t = (_lb or '').split('_')[-1] + if _t and _t not in _acct_types: + _acct_types.append(_t) + acct_label = html.escape('·'.join(_acct_types)) qty = r.get('qty', 0) avg = r.get('avg', 0) price = r.get('price', 0) @@ -2671,8 +2678,8 @@ def _render_holding_row(r: dict, total_value: int, show_day_change: bool = False
{_buy_rank_badge(buy_amount)}{stock}
-
{star}보유 {qty:,}주{_pending_badges_html(r)}비중 {weight:.2f}%
-
{tag_chip}{accounts}
+
{star}보유 {qty:,}주{_pending_badges_html(r)}{weight:.2f}%{acct_label}
+
{tag_chip}
{summary_journal_html}