first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<h2>baskets</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>event</th>
|
||||
<th>mode</th>
|
||||
<th class="num">count</th>
|
||||
<th class="num">cost</th>
|
||||
<th>status</th>
|
||||
<th class="num">pnl</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for b in rows %}
|
||||
<tr>
|
||||
<td>{{ b.id }}</td>
|
||||
<td>{{ b.event_title }}</td>
|
||||
<td>{{ "paper" if b.is_paper else "live" }}</td>
|
||||
<td class="num">{{ b.basket_count }}</td>
|
||||
<td class="num">{{ b.total_cost_usd }}</td>
|
||||
<td><span class="badge {{ b.status }}">{{ b.status }}</span></td>
|
||||
<td class="num {% if b.realized_pnl_usd and b.realized_pnl_usd.startswith('-') %}neg{% elif b.realized_pnl_usd %}pos{% endif %}">{{ b.realized_pnl_usd or '—' }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td colspan="7" style="color:#8b949e;">no baskets yet</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,29 @@
|
||||
<h2>recent opportunities</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>detected</th>
|
||||
<th>event</th>
|
||||
<th class="num">Σ asks</th>
|
||||
<th class="num">net bps</th>
|
||||
<th class="num">max baskets</th>
|
||||
<th class="num">expected $</th>
|
||||
<th>acted</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for r in rows %}
|
||||
<tr>
|
||||
<td>{{ r.detected_at }}</td>
|
||||
<td>{{ r.event_title }}</td>
|
||||
<td class="num">{{ r.sum_vwap_asks }}</td>
|
||||
<td class="num {% if r.net_edge_bps > 0 %}pos{% else %}neg{% endif %}">{{ r.net_edge_bps }}</td>
|
||||
<td class="num">{{ r.max_baskets }}</td>
|
||||
<td class="num">{{ r.expected_profit_usd }}</td>
|
||||
<td>{% if r.acted_on %}<span class="badge redeemed">yes</span>{% else %}<span class="badge">no</span>{% endif %}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td colspan="7" style="color:#8b949e;">no opportunities yet</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,17 @@
|
||||
<h2>paper pnl</h2>
|
||||
<table>
|
||||
<tr><th>realized pnl (usd)</th><td class="num {% if realized_pnl_usd.startswith('-') %}neg{% else %}pos{% endif %}">{{ realized_pnl_usd }}</td></tr>
|
||||
<tr><th>redeemed</th><td class="num">{{ redeemed }}</td></tr>
|
||||
<tr><th>pending resolution</th><td class="num">{{ pending }}</td></tr>
|
||||
<tr><th>failed</th><td class="num">{{ failed }}</td></tr>
|
||||
<tr><th>invalid</th><td class="num">{{ invalid }}</td></tr>
|
||||
</table>
|
||||
<p style="margin-top: 0.75rem;">
|
||||
mode: <strong>{{ mode }}</strong>
|
||||
{% if kill_active %}
|
||||
· <span class="badge failed">KILL SWITCH ACTIVE</span>
|
||||
<button class="unkill" hx-post="/unkill" hx-target="#pnl" hx-swap="innerHTML">arm (remove kill)</button>
|
||||
{% else %}
|
||||
<button class="kill" hx-post="/kill" hx-target="#pnl" hx-swap="innerHTML">kill</button>
|
||||
{% endif %}
|
||||
</p>
|
||||
Reference in New Issue
Block a user