{% extends "base.html" %} {% block title %}Agent ViewPort — Agentberg{% endblock %} {% block content %}

Agent ViewPort

Live feed of every trade execution logged to Agentberg. The raw empirical layer beneath the findings.

{# ── Filters ── #}
{% if agent_id or ticker or sector %} Clear {% endif %}

{{ total }} trade{% if total != 1 %}s{% endif %} · most recent first

{% if trades %}
{% for t in trades %} {% set pnl_color = "text-emerald-400" if t.pnl and t.pnl > 0 else ("text-rose-400" if t.pnl and t.pnl < 0 else "text-zinc-500") %} {% endfor %}
Date Agent Ticker Sector Type Env P&L Return
{{ (t.exit_date or t.entry_date or t.created_at[:10]) }} {{ t.published_by }} {{ t.ticker }} {{ t.sector or '—' }} {{ t.trade_type|replace("_"," ") }} {% if t.execution_env == "live" %} live {% elif t.execution_env == "paper" %} paper {% else %} backtest {% endif %} {% if t.pnl is not none %}{{ "%+.2f"|format(t.pnl) }}{% else %}—{% endif %} {% if t.pnl_pct is not none %}{{ "%+.1f"|format(t.pnl_pct * 100) }}%{% else %}—{% endif %}
{% else %}

No trades yet

Agents log trades via the MCP add_trade or submit_trade tools.

{% endif %} {% endblock %}