{% extends "base.html" %} {% block title %}{{ page_title }} - AgomTradePro{% endblock %} {% block content %} {% include "components/classic_tui_migration_banner.html" with screen_key="execution.accounts" action_key="broker-execution.overview" %}
尚无本地 Agent。请由管理员完成 Windows Agent 与账户绑定。
{% elif page_data.pending_approvals.count %}复核待确认订单{% else %}当前没有待确认订单。请持续关注连接与对账状态。
{% endif %}服务端会重新生成当前建议并执行权威风控;不能在这里手工填写标的、方向、数量或价格。
| 状态 | 账户 | 标的 | 方向 | 数量 | 限价 | 预计金额 | 有效期 | 操作 |
|---|---|---|---|---|---|---|---|---|
| {{ order.status }} | {{ order.account_id }} | {{ order.asset_code }} | {{ order.side }} | {{ order.quantity }} | {{ order.limit_price|default:"-" }} | {{ order.estimated_amount }} | {{ order.expires_at|default:"-" }} | {% if permissions.approve and order.action_availability.approve %}{% endif %}{% if permissions.reject and order.action_availability.reject %}{% endif %}{% if permissions.cancel and order.action_availability.cancel %}{% endif %} |
| 当前没有可见实盘订单。 | ||||||||
{{ page_data.status }}
账户:{{ page_data.account_id }}
数量:{{ page_data.quantity }},限价:{{ page_data.limit_price|default:"-" }}
预计金额:{{ page_data.estimated_amount }}
券商委托号:{{ page_data.broker_order_id|default:"-" }}
已成交:{{ page_data.filled_quantity }},成交均价:{{ page_data.average_fill_price|default:"-" }}
{% if page_data.failure_code or page_data.failure_message %}有效期:{{ page_data.expires_at|default:"-" }}
审批摘要:{{ page_data.approval_digest|default:"尚未批准" }}
{{ page_data.risk_snapshot }}| 时间 | 事件 | 状态 | 编号 |
|---|---|---|---|
| {{ event.occurred_at }} | {{ event.event_type }} | {{ event.status }} | {{ event.event_id }} |
| 尚无券商委托回报。 | |||
| 成交时间 | 券商成交号 | 数量 | 价格 | 金额 |
|---|---|---|---|---|
| {{ fill.occurred_at }} | {{ fill.broker_trade_id }} | {{ fill.quantity }} | {{ fill.price }} | {{ fill.amount }} |
| 尚无成交。 | ||||
| 时间 | 账户 | 状态 | 订单 | 成交 | 资金 | 持仓 | 差异证据 | 操作 |
|---|---|---|---|---|---|---|---|---|
| {{ run.started_at }} | {{ run.account_id }} | {{ run.status }} | {{ run.order_difference_count }} | {{ run.fill_difference_count }} | {{ run.cash_difference_count }} | {{ run.position_difference_count }} | {{ run.differences|length }} 项{% for difference in run.differences %}{{ difference.severity }} · {{ difference.dimension }} {{ difference.difference_key }} {% empty %}无差异{% endfor %}{{ difference.reason }} | {% if permissions.resolve_reconciliation and run.status != 'resolved' and run.status != 'completed' %}{% endif %} |
| 暂无对账批次。Agent 首次同步后会形成持久化证据。 | ||||||||
| Agent | 状态 | QMT | 版本 | 最后心跳 | 绑定账户 | {% if permissions.manage_binding and page_key == 'connection' %}连接操作 | {% endif %}
|---|---|---|---|---|---|---|
| {{ agent.display_name }} | {{ agent.status }} | {% if agent.qmt_connected %}已连接{% else %}未连接{% endif %} | {{ agent.agent_version|default:"-" }} | {{ agent.last_heartbeat_at|default:"从未" }} | {% for binding in agent.bindings %} {{ binding.account_id }} · {{ binding.broker_account_mask }} · {% if binding.is_active %}{% if binding.auto_execution_enabled %}可执行{% else %}仅观察{% endif %}{% else %}已解绑{% endif %}{% if permissions.manage_binding and binding.is_active and page_key == 'connection' %} {% endif %} {% empty %}-{% endfor %} | {% if permissions.manage_binding and page_key == 'connection' %}{% endif %} |
| 本地 Agent 尚未连接。请先在 Windows 安装 QMT、xtquant 与 Agom QMT Agent。 | ||||||
主动测试通过现有出站长轮询向 Agent 下发全量同步命令,不需要在本机开放入站端口。
{% endif %}首版仅支持普通股票账户;信用账户必须在专门适配融资融券委托语义后另行验收。
| Agent | 凭证 ID | 允许账户 | 有效期 | 状态 | 操作 |
|---|---|---|---|---|---|
| {{ agent.agent_id }} | {{ credential.credential_id }} | {{ credential.allowed_account_ids|join:", " }} | {{ credential.expires_at }} | {% if credential.revoked_at %}已撤销{% else %}有效{% endif %} | {% if not credential.revoked_at %}{% endif %} |
角色只决定可执行的动作类型;非账户所有者还必须拥有这里配置的显式账户授权。
| 用户 | 账户 | 审批 | 交易 | 状态 | 授权人 |
|---|---|---|---|---|---|
| {{ grant.username }} ({{ grant.user_id }}) | {{ grant.account_id }} | {% if grant.can_approve %}允许{% else %}禁止{% endif %} | {% if grant.can_trade %}允许{% else %}禁止{% endif %} | {% if grant.is_active %}有效{% else %}已撤销{% endif %} | {{ grant.granted_by|default:"-" }} |
| 暂无显式账户授权。 | |||||
| 时间 | 操作者 | 动作 | 账户 | 资源 | 原因 | 请求 ID |
|---|---|---|---|---|---|---|
| {{ event.created_at }} | {{ event.actor_username|default:event.actor_type }} | {{ event.action }} | {{ event.account_id }} | {{ event.resource_type }} / {{ event.resource_id }} | {{ event.reason|default:"-" }} | {{ event.request_id|default:"-" }} |
| 暂无可见审计事件。 | ||||||
导出范围与当前用户权限及当前筛选结果一致;不会包含其他用户的审计数据。