fix期权交易记录列名改为期权盈亏,并补充曲线审计报告。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-13 13:42:26 +08:00
parent 117f595b54
commit 03acecf015
3 changed files with 91 additions and 8 deletions
+6 -5
View File
@@ -456,11 +456,11 @@
var pendingSell = stRaw === "待卖回";
if (needsMark) {
badgeExtra +=
' <span class="or-badge" style="background:rgba(255,170,60,.28)" title="缺开仓价或卖回价,未能按新真盈亏公式更新">缺价未核</span>';
' <span class="or-badge" style="background:rgba(255,170,60,.28)" title="缺开仓价或卖回价,未能按新公式更新期权盈亏">缺价未核</span>';
}
if (pendingSell) {
badgeExtra +=
' <span class="or-badge" style="background:rgba(120,180,255,.28)" title="平仓卖回未完成(可能多笔),完成后按卖回VWAP结算真盈亏">待卖回</span>';
' <span class="or-badge" style="background:rgba(120,180,255,.28)" title="平仓卖回未完成(可能多笔),完成后按卖回VWAP结算期权盈亏">待卖回</span>';
}
return (
'<tr class="or-trade-row' +
@@ -589,7 +589,7 @@
escapeHtml(t.source_label || t.source_type) +
"</span>" +
(needsMarkR
? ' <span class="or-badge" style="background:rgba(255,170,60,.28)" title="缺开仓价或卖回价,未能按新真盈亏公式更新">缺价未核</span>'
? ' <span class="or-badge" style="background:rgba(255,170,60,.28)" title="缺开仓价或卖回价,未能按新公式更新期权盈亏">缺价未核</span>'
: "") +
"</td>" +
"<td>" +
@@ -909,11 +909,12 @@
var meta = $("or-detail-meta");
if (meta) {
var pnlLabel = t.is_hedge ? "盈亏" : "期权盈亏";
var cells = [
["标的", t.underlying || "—"],
["合约/计划", tradeTitle(t)],
["初始权利金", fmtPremiumU(t.initial_premium_usdt)],
["盈亏", fmtPnl(t.realized_pnl_total)],
[pnlLabel, fmtPnl(t.realized_pnl_total)],
["盈利率", fmtProfitRate(resolveProfitRate(t))],
["期权手续费", fmtOptionFee(t.option_fee_usdt)],
["持有", fmtHold(t.hold_seconds)],
@@ -937,7 +938,7 @@
if (pair[0] === "盈亏" || pair[0] === "永续盈亏" || pair[0] === "期权盈亏") {
cls = pnlClass(t.realized_pnl_total);
if (pair[0] === "永续盈亏") cls = pnlClass(t.realized_pnl_perp);
if (pair[0] === "期权盈亏") cls = pnlClass(t.realized_pnl_options);
if (pair[0] === "期权盈亏" && t.is_hedge) cls = pnlClass(t.realized_pnl_options);
} else if (pair[0] === "结果") {
cls = resultClass(e.result_tag);
}
@@ -229,7 +229,7 @@
<span class="or-step" aria-hidden="true">1</span>
<div>
<div class="or-section-title" id="or-list-title">期权交易记录</div>
<p class="or-section-desc">真盈亏=期权历史币盈亏×平仓价(有卖回 VWAP 优先,否则用冻结平仓价)。缺价标「缺价未核」。期权历史仅记币收益。</p>
<p class="or-section-desc">期权盈亏=期权历史币盈亏×平仓价(有卖回 VWAP 优先,否则用冻结平仓价)。缺价标「缺价未核」。期权历史仅记币收益。</p>
</div>
</div>
<div class="options-strike-table-wrap or-trades-table-wrap" id="or-trades-wrap">
@@ -239,7 +239,7 @@
<th>类型</th>
<th>标的/合约</th>
<th>初始权利金</th>
<th title="期权历史币盈亏×平仓价">真盈亏</th>
<th title="期权历史币盈亏×平仓价">期权盈亏</th>
<th>盈利率</th>
<th title="仅期权开/平手续费">手续费</th>
<th>开仓时间</th>
@@ -465,4 +465,4 @@
</section>
</div>
<script src="/static/options_review.js?v=27"></script>
<script src="/static/options_review.js?v=28"></script>