Files
remizov-trader/src/remizov_trader/web/templates/partials/positions_table.html
T
anorandClaude Opus 4.6 8800ffb604 feat: адаптивный движок (A1-A5) + UI улучшения (B3-B7)
Движок: adaptive corr threshold, regime adaptive K/stop, Kelly criterion,
correlation filter. UI: signal log, manual close, CSV export, dark/light
toggle, mobile responsive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:22:59 +10:00

41 lines
1.3 KiB
HTML

<table>
<thead>
<tr>
<th>Asset</th>
<th>Direction</th>
<th>Entry</th>
<th>Stop</th>
<th>Correlation</th>
<th>Day</th>
<th>Equity</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for p in positions %}
<tr>
<td><strong>{{ p.ticker }}</strong></td>
<td>
<span class="badge {{ 'badge-long' if p.direction == 1 else 'badge-short' }}">
{{ 'LONG' if p.direction == 1 else 'SHORT' }}
</span>
</td>
<td>${{ "%.2f"|format(p.entry_price) }}</td>
<td>${{ "%.2f"|format(p.stop_price) }}</td>
<td>{{ "%.3f"|format(p.correlation or 0) }}</td>
<td>{{ p.entry_date }}</td>
<td>${{ "%.2f"|format(p.equity) }}</td>
<td>
<button class="outline secondary"
hx-post="/api/close-position/{{ p.id }}"
hx-target="closest tr"
hx-swap="outerHTML"
hx-confirm="Close this position at market price?">
Close
</button>
</td>
</tr>
{% endfor %}
</tbody>
</table>