Split live positions from hedge plans; show option+perp net PnL after fees.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
<button type="button" class="btn-secondary" id="hp-refresh" title="刷新永续行情与期权链">刷新行情</button>
|
||||
<span class="muted hp-po-gate-inline" id="hp-po-gate-inline" aria-live="polite"></span>
|
||||
</div>
|
||||
<div class="hp-tabs" role="tablist" aria-label="对冲模式" hidden>
|
||||
{# 模式由导航/env 决定,页内不再显示「永期对冲」Tab #}
|
||||
<div class="hp-tabs" role="tablist" aria-label="对冲模式" hidden style="display:none!important">
|
||||
{% if hedge_plan_show_perp_options %}
|
||||
<button type="button" class="hp-tab" role="tab" aria-selected="false" data-tab="perp_options">永期对冲</button>
|
||||
{% endif %}
|
||||
@@ -213,13 +214,18 @@
|
||||
</div>
|
||||
<div class="options-pos-tabs" role="tablist" aria-label="永期持仓面板">
|
||||
<button type="button" class="btn-secondary opt-pos-tab hp-pos-tab active" data-hp-pos-tab="live" role="tab" aria-selected="true">当前持仓</button>
|
||||
<button type="button" class="btn-secondary opt-pos-tab hp-pos-tab" data-hp-pos-tab="plans" role="tab" aria-selected="false">对冲计划</button>
|
||||
<button type="button" class="btn-secondary opt-pos-tab hp-pos-tab" data-hp-pos-tab="pending" role="tab" aria-selected="false">当前委托</button>
|
||||
<button type="button" class="btn-secondary opt-pos-tab hp-pos-tab" data-hp-pos-tab="history" role="tab" aria-selected="false">历史记录</button>
|
||||
<button type="button" class="btn-secondary opt-pos-tab hp-pos-tab" data-hp-pos-tab="stats" role="tab" aria-selected="false">统计分析</button>
|
||||
</div>
|
||||
<div class="options-pos-tab-body">
|
||||
<div class="options-pos-pane is-active" data-hp-pos-pane="live" role="tabpanel">
|
||||
<p class="muted" style="margin:0 0 8px;font-size:.82rem">进行中的对冲计划(持仓中 / 半腿待补)</p>
|
||||
<div id="hp-live-pos-list" class="hp-live-pos-list">
|
||||
<p class="muted">加载中…</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="options-pos-pane" data-hp-pos-pane="plans" role="tabpanel" hidden>
|
||||
<div class="options-strike-table-wrap">
|
||||
<table class="options-strike-table hp-history-table">
|
||||
<thead>
|
||||
@@ -426,4 +432,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/hedge_plan.js?v=53"></script>
|
||||
<script src="/static/hedge_plan.js?v=54"></script>
|
||||
|
||||
Reference in New Issue
Block a user