@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* 中控行情区:K 线 + 成交量;默认最新 OHLCV;60s 自动刷新;价格轴「自动」。
|
* 中控行情区:K 线 + 成交量;默认最新 OHLCV;5s 自动刷新;价格轴「自动」。
|
||||||
*/
|
*/
|
||||||
(function () {
|
(function () {
|
||||||
const AUTO_REFRESH_MS = 60000;
|
const AUTO_REFRESH_MS = 5000;
|
||||||
const DEFAULT_VISIBLE_BARS = 200;
|
const DEFAULT_VISIBLE_BARS = 200;
|
||||||
const RIGHT_OFFSET_BARS = 12;
|
const RIGHT_OFFSET_BARS = 12;
|
||||||
const TF_MS = {
|
const TF_MS = {
|
||||||
@@ -549,7 +549,7 @@
|
|||||||
(data.from_cache || 0) +
|
(data.from_cache || 0) +
|
||||||
" / 新拉 " +
|
" / 新拉 " +
|
||||||
(data.fetched || 0) +
|
(data.fetched || 0) +
|
||||||
")· 每 60s 刷新";
|
")· 每 5s 刷新";
|
||||||
if (data.stale && data.stale_message) {
|
if (data.stale && data.stale_message) {
|
||||||
hint += " · 缓存:" + data.stale_message;
|
hint += " · 缓存:" + data.stale_message;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<summary>数据说明</summary>
|
<summary>数据说明</summary>
|
||||||
<div class="hint-body">
|
<div class="hint-body">
|
||||||
优先读中控 <code>data/hub_kline.db</code>,不足时向所选交易所实例请求并写入库。<br />
|
优先读中控 <code>data/hub_kline.db</code>,不足时向所选交易所实例请求并写入库。<br />
|
||||||
日内周期最多 1000 根,日线/周线最多 500 根。打开本页时每 60 秒自动刷新一次 K 线。
|
日内周期最多 1000 根,日线/周线最多 500 根。打开本页时每 5 秒自动刷新一次 K 线。
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
<div class="market-toolbar toolbar">
|
<div class="market-toolbar toolbar">
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
|
|
||||||
<div id="toast"></div>
|
<div id="toast"></div>
|
||||||
<script src="https://unpkg.com/lightweight-charts@4.2.0/dist/lightweight-charts.standalone.production.js"></script>
|
<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/chart.js?v=20260528-hub-market8"></script>
|
||||||
<script src="/assets/app.js?v=20260528-hub-market7"></script>
|
<script src="/assets/app.js?v=20260528-hub-market8"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user