Files
polymarket_arbitrage/arbitrage/web/templates/fragments/baskets.html
T
gavindiaz 9259325d8a
deploy GitHub Pages / deploy (push) Has been cancelled
tests / test (push) Has been cancelled
first commit
2026-07-22 18:53:44 +08:00

30 lines
873 B
HTML

<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>