Improve navigating trades and positions by cross-linking
This commit is contained in:
@@ -4,10 +4,11 @@
|
||||
<th>account</th>
|
||||
<th>asset</th>
|
||||
<th>price</th>
|
||||
<th>value in base</th>
|
||||
<th>value in quote</th>
|
||||
<th>units</th>
|
||||
<th>quote</th>
|
||||
<th>P/L</th>
|
||||
<th>side</th>
|
||||
<th>stored</th>
|
||||
<th>actions</th>
|
||||
</thead>
|
||||
{% for item in items %}
|
||||
@@ -21,7 +22,18 @@
|
||||
<td>{{ item.units }}</td>
|
||||
<td>{{ item.value }}</td>
|
||||
<td>{{ item.unrealized_pl }}</td>
|
||||
<td>{{ item.side }}</td>
|
||||
<td>
|
||||
{% if item.side == 'long' %}
|
||||
<span class="icon has-text-success" data-tooltip="long">
|
||||
<i class="fa-solid fa-up"></i>
|
||||
</span>
|
||||
{% elif item.side == 'short' %}
|
||||
<span class="icon has-text-danger" data-tooltip="short">
|
||||
<i class="fa-solid fa-down"></i>
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ item.trades|length }}</td>
|
||||
<td>
|
||||
<div class="buttons">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user