From 432adfb602815ea74134a4c52ce25cdf508f2b21 Mon Sep 17 00:00:00 2001 From: dekun Date: Mon, 17 Aug 2026 11:52:35 +0800 Subject: [PATCH] Fix nav ticker day-change: use SWAP sodUtc0 (Beijing 08:00) from same instrument. Co-authored-by: Cursor --- lib/common/static/nav_spot_tickers.js | 4 +- lib/instance/templates/embed_shell.html | 2 +- lib/instance/templates/index.html | 2 +- lib/instance/templates/nav_spot_tickers.html | 2 +- lib/market/nav_spot_tickers_lib.py | 182 +++++++------------ 5 files changed, 68 insertions(+), 124 deletions(-) diff --git a/lib/common/static/nav_spot_tickers.js b/lib/common/static/nav_spot_tickers.js index d934837..2bceef8 100644 --- a/lib/common/static/nav_spot_tickers.js +++ b/lib/common/static/nav_spot_tickers.js @@ -68,8 +68,8 @@ if (pctEl) pctEl.textContent = fmtSigned(t.change_pct, true); const openHint = t.open != null - ? "开盘 " + fmtPrice(t.open) + " (" + (t.anchor || "BJ 08:00") + ")" - : t.anchor || "BJ 08:00"; + ? "开盘 " + fmtPrice(t.open) + " · 北京 08:00 (sodUtc0)" + : "北京 08:00 (sodUtc0)"; row.title = (t.symbol || "") + " " + openHint; } diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index f38850b..eca6c53 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -149,7 +149,7 @@ const ORDER_ENTRY_MODEL_CODE_TO_CATEGORY = {{ entry_model_code_to_category | toj {% include 'embed_boot_scripts.html' %} - + - +