Fix hedge market quotes via public HTTP and default cloud-server deploy settings.
Avoid load_markets hangs on weak networks; enable login-required sim defaults and document Baota Nginx reverse proxy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -990,6 +990,18 @@
|
||||
const amtPrec = d.amount_precision != null ? Number(d.amount_precision) : 4;
|
||||
const markEl = $("hp-po-mark");
|
||||
if (markEl) markEl.textContent = "标记 " + fmt(d.mark, 2);
|
||||
// 指数优先用行情接口,期权链慢/失败时也不再显示 --
|
||||
const mIdx = d.index_px != null ? Number(d.index_px) : NaN;
|
||||
if (Number.isFinite(mIdx) && mIdx > 0) {
|
||||
const idxLine = $("hp-index-line");
|
||||
if (idxLine && (!state.chain || !state.chain.index_px)) {
|
||||
idxLine.textContent = "指数 " + fmt(mIdx, 2);
|
||||
}
|
||||
const ooIdx = $("hp-oo-index");
|
||||
if (ooIdx && (!state.chain || !state.chain.index_px)) {
|
||||
ooIdx.textContent = "指数 " + fmt(mIdx, 2);
|
||||
}
|
||||
}
|
||||
const quoteHtml =
|
||||
"可用 <strong>" +
|
||||
fmt(d.available_usdt, 2) +
|
||||
|
||||
Reference in New Issue
Block a user