行情区:K 线自动刷新间隔改为 5 秒

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-02 12:02:50 +08:00
parent cc041a0dc5
commit ffe5f230fd
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
/**
* 中控行情区:K 线 + 成交量;默认最新 OHLCV;60s 自动刷新;价格轴「自动」。
* 中控行情区:K 线 + 成交量;默认最新 OHLCV;5s 自动刷新;价格轴「自动」。
*/
(function () {
const AUTO_REFRESH_MS = 60000;
const AUTO_REFRESH_MS = 5000;
const DEFAULT_VISIBLE_BARS = 200;
const RIGHT_OFFSET_BARS = 12;
const TF_MS = {
@@ -549,7 +549,7 @@
(data.from_cache || 0) +
" / 新拉 " +
(data.fetched || 0) +
")· 每 60s 刷新";
")· 每 5s 刷新";
if (data.stale && data.stale_message) {
hint += " · 缓存:" + data.stale_message;
}
+3 -3
View File
@@ -66,7 +66,7 @@
<summary>数据说明</summary>
<div class="hint-body">
优先读中控 <code>data/hub_kline.db</code>,不足时向所选交易所实例请求并写入库。<br />
日内周期最多 1000 根,日线/周线最多 500 根。打开本页时每 60 秒自动刷新一次 K 线。
日内周期最多 1000 根,日线/周线最多 500 根。打开本页时每 5 秒自动刷新一次 K 线。
</div>
</details>
<div class="market-toolbar toolbar">
@@ -192,7 +192,7 @@
<div id="toast"></div>
<script src="https://unpkg.com/lightweight-charts@4.2.0/dist/lightweight-charts.standalone.production.js"></script>
<script src="/assets/chart.js?v=20260528-hub-market7"></script>
<script src="/assets/app.js?v=20260528-hub-market7"></script>
<script src="/assets/chart.js?v=20260528-hub-market8"></script>
<script src="/assets/app.js?v=20260528-hub-market8"></script>
</body>
</html>