{% extends "base.html" %} {% load static i18n humanize %} {% block title %}{{ ticker }} - Invest{% endblock %} {% block content %}
跨 {{ portfolio_count }} 个账户持仓{% if theme != '—' %} · 主题:{{ theme }}{% endif %}{% if weight is not None %} · 权重 {{ weight|floatformat:1 }}%{% endif %}
${{ current_price|floatformat:2|intcomma }}
当前价格
{% else %}—
{% endif %}持仓数量
{{ total_qty|floatformat:2|intcomma }}
{{ positions|length }} 个账户
Avg Cost
{% if avg_cost %}${{ avg_cost|floatformat:2|intcomma }}
{% if estimated %}按交易日收盘价估算{% else %}按成交价加权{% endif %}
{% else %}—
无成本数据
{% endif %}市值
${{ total_value|floatformat:0|intcomma }}
成本 ${{ total_cost|floatformat:0|intcomma }}
未实现盈亏
{% if total_pnl is not None %}{% if total_pnl >= 0 %}+{% endif %}${{ total_pnl|floatformat:0|intcomma }}
{% if pnl_pct >= 0 %}+{% endif %}{{ pnl_pct|floatformat:1 }}%
{% else %}—
无成本数据
{% endif %}各账户持仓
| 账户 | 数量 | 市值 |
|---|---|---|
| {{ pos.portfolio.name }} | {{ pos.quantity|floatformat:2|intcomma }} | ${{ pos.current_value|floatformat:0|intcomma }} |
当前无持仓(可能有历史交易)
交易历史
+ 添加交易| 日期 | 账户 | 类型 | 数量 | 价格 | 手续费 | 来源 |
|---|---|---|---|---|---|---|
| {{ tx.date|date:"Y-m-d" }} | {{ tx.portfolio.name }} | {{ tx.action }} | {{ tx.quantity|floatformat:2|intcomma }} | {% if tx.price_per_share %}${{ tx.price_per_share|floatformat:2|intcomma }}{% else %}~估算{% endif %} | {% if tx.fee %}${{ tx.fee|floatformat:2|intcomma }}{% else %}—{% endif %} | {% if tx.source %} {% if tx.source|lower == 'ai' or tx.source|lower == 'ocr' %}🤖 AI{% else %}手动{% endif %} {% if tx.confidence is not None and tx.confidence < 0.9 %} ⚠ 低置信 {% endif %} {% endif %} |
暂无交易记录