Show editable exit on live cards; price perp PnL via close-side book VWAP.
Align monitor profit-exit with the same book VWAP so card and auto-exit stay consistent. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -430,5 +430,40 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="hp-exit-modal" class="hp-modal-backdrop" hidden>
|
||||
<div class="hp-modal hp-exit-modal" role="dialog" aria-modal="true" aria-labelledby="hp-exit-title">
|
||||
<div class="hp-modal-head">
|
||||
<h3 id="hp-exit-title">改出场</h3>
|
||||
<button type="button" class="btn-secondary" id="hp-exit-close" aria-label="关闭">关闭</button>
|
||||
</div>
|
||||
<div class="hp-modal-body">
|
||||
<input type="hidden" id="hp-exit-plan-id" value="" />
|
||||
<div class="hp-oo-seg hp-exit-mode-seg" role="group" aria-label="出场方式">
|
||||
<button type="button" class="btn-secondary hp-exit-mode-btn is-selected" data-exit="profit"><span class="hp-oo-check" aria-hidden="true">✓</span>盈利金额</button>
|
||||
<button type="button" class="btn-secondary hp-exit-mode-btn" data-exit="target"><span class="hp-oo-check" aria-hidden="true">✓</span>目标位</button>
|
||||
</div>
|
||||
<div class="hp-exit-fields" id="hp-exit-fields-profit">
|
||||
<label>目标盈利 USDT
|
||||
<input type="number" id="hp-exit-profit" step="0.01" min="0.01" inputmode="decimal" />
|
||||
</label>
|
||||
<p class="muted">扣开平双边手续费后的组合净利达标即平(期权买一+永续盘口均价).</p>
|
||||
</div>
|
||||
<div class="hp-exit-fields hidden" id="hp-exit-fields-target" hidden>
|
||||
<label>期权目标点数
|
||||
<input type="number" id="hp-exit-opt-pts" step="1" min="1" inputmode="numeric" />
|
||||
</label>
|
||||
<label>永续目标点数
|
||||
<input type="number" id="hp-exit-perp-pts" step="1" min="1" inputmode="numeric" />
|
||||
</label>
|
||||
</div>
|
||||
<p class="err" id="hp-exit-err" hidden></p>
|
||||
<div class="form-row hp-preview-actions">
|
||||
<button type="button" class="btn-secondary" id="hp-exit-cancel">取消</button>
|
||||
<button type="button" class="primary" id="hp-exit-save">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/hedge_plan.js?v=59"></script>
|
||||
<script src="/static/hedge_plan.js?v=60"></script>
|
||||
|
||||
Reference in New Issue
Block a user