总览从在线客户端快照展示 ETH/BTC 报价,优先 live。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 19:52:56 +08:00
parent bcd32a25c3
commit 2c21f5e675
4 changed files with 177 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}期权中控{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=21">
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=22">
</head>
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path == '/' %}page-dashboard{% endif %}">
{% if session.get('logged_in') %}
+15 -1
View File
@@ -3,6 +3,20 @@
{% block body %}
<section class="page-head">
<h1>期权持仓总览</h1>
<div class="overview-quotes" id="overview-quotes" title="来自在线客户端 · 相对北京 08:00">
<div class="overview-quote-row" data-base="ETH">
<span class="overview-quote-sym">ETH</span>
<span class="overview-quote-last" data-field="last">—</span>
<span class="overview-quote-chg" data-field="change">—</span>
<span class="overview-quote-pct" data-field="change_pct">—</span>
</div>
<div class="overview-quote-row" data-base="BTC">
<span class="overview-quote-sym">BTC</span>
<span class="overview-quote-last" data-field="last">—</span>
<span class="overview-quote-chg" data-field="change">—</span>
<span class="overview-quote-pct" data-field="change_pct">—</span>
</div>
</div>
<div class="overview-bj-clock" id="overview-bj-clock" title="Asia/Shanghai">
<span class="overview-bj-label">北京时间</span>
<time class="overview-bj-time" id="overview-bj-time" datetime="">--</time>
@@ -15,6 +29,6 @@
<div id="overview-grid"></div>
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='hub.js') }}?v=20"></script>
<script src="{{ url_for('static', filename='hub.js') }}?v=21"></script>
<script>HubOverview.boot();</script>
{% endblock %}