Expand default strike rows and add hedge fund transfer / sell-coin.
Show the default five chain rows without a scroll box, add funding transfer under manual pick, and wire sell-back-coin above positions via hedge APIs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -101,6 +101,32 @@
|
||||
</table>
|
||||
</div>
|
||||
<div id="hp-opt-bal-line" class="muted hp-po-meta hp-opt-bal-line"></div>
|
||||
<div class="hp-oo-transfer hp-oo-transfer--compact" id="hp-po-transfer">
|
||||
<div class="hp-oo-transfer-bals muted">
|
||||
<span>资金 <strong id="hp-po-funding-usdt">—</strong></span>
|
||||
<span class="hp-oo-transfer-sep">·</span>
|
||||
<span>交易 <strong id="hp-po-trading-usdt">—</strong></span>
|
||||
<span class="hp-oo-transfer-unit">USDT</span>
|
||||
<span class="muted" id="hp-po-xfer-msg"></span>
|
||||
</div>
|
||||
<div class="form-row hp-oo-transfer-form" autocomplete="off">
|
||||
<input type="text" name="username" autocomplete="username" tabindex="-1" aria-hidden="true"
|
||||
style="position:absolute;left:-9999px;width:1px;height:1px;opacity:0" value="">
|
||||
<select id="hp-po-xfer-ccy" aria-label="币种" autocomplete="off">
|
||||
<option value="USDT" selected>USDT</option>
|
||||
<option value="ETH">ETH</option>
|
||||
<option value="BTC">BTC</option>
|
||||
</select>
|
||||
<select id="hp-po-xfer-dir" aria-label="划转方向" autocomplete="off">
|
||||
<option value="funding_to_trading" selected>资金 → 交易</option>
|
||||
<option value="trading_to_funding">交易 → 资金</option>
|
||||
</select>
|
||||
<input type="number" id="hp-po-xfer-amount" name="cm_hp_po_xfer_amt" min="0.01" step="any" placeholder="数量"
|
||||
autocomplete="off" inputmode="decimal" data-lpignore="true" data-1p-ignore="true" data-bwignore="true" data-form-type="other" readonly />
|
||||
<button type="button" class="btn-secondary btn-sm" id="hp-po-xfer-all">全部</button>
|
||||
<button type="button" class="btn-primary btn-sm" id="hp-po-xfer-btn">划转</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 弹窗下单:宽屏左测算 / 右下单 -->
|
||||
<div id="hp-order-panel-host" class="opt-order-backdrop" hidden aria-hidden="true">
|
||||
@@ -208,9 +234,11 @@
|
||||
<div class="options-pos-head">
|
||||
<h2>持仓</h2>
|
||||
<div class="options-pos-head-actions">
|
||||
<button type="button" class="btn-secondary" id="hp-sell-coin-btn" title="市价卖出交易账户全部可用标的币(当前选中 ETH/BTC)换回 USDT">手动卖回币</button>
|
||||
<button type="button" class="btn-secondary" id="hp-pos-refresh" title="刷新持仓与历史">刷新</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="muted" id="hp-sell-coin-msg" style="font-size:.72rem;margin:0 0 6px"></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>
|
||||
@@ -466,4 +494,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/hedge_plan.js?v=60"></script>
|
||||
<script src="/static/hedge_plan.js?v=61"></script>
|
||||
|
||||
Reference in New Issue
Block a user