feat: 手续费改为逐笔USD累算 + Vite React前端 + system_orders表 + README
This commit is contained in:
+18
-39
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Exchange Monitor Dashboard</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
@@ -42,6 +42,21 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Open Positions -->
|
||||
<section class="card" id="positions-card">
|
||||
<h2>🔒 当前持仓</h2>
|
||||
<div class="table-wrap">
|
||||
<table id="positions-table">
|
||||
<thead>
|
||||
<tr><th>币种</th><th>方向</th><th>规模</th><th>入价差</th><th>现价差</th><th>估盈亏</th><th>加仓</th><th>时长</th></tr>
|
||||
</thead>
|
||||
<tbody id="positions-body">
|
||||
<tr><td colspan="8" class="loading">等待数据...</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Blacklist -->
|
||||
<section class="card" id="bl-card">
|
||||
<h2>⛔ 黑名单</h2>
|
||||
@@ -80,44 +95,6 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Open Positions -->
|
||||
<section class="card" id="positions-card">
|
||||
<h2>🔒 当前持仓</h2>
|
||||
<div class="table-wrap">
|
||||
<table id="positions-table">
|
||||
<thead>
|
||||
<tr><th>币种</th><th>方向</th><th>规模</th><th>入价差</th><th>现价差</th><th>估盈亏</th><th>加仓</th><th>时长</th></tr>
|
||||
</thead>
|
||||
<tbody id="positions-body">
|
||||
<tr><td colspan="8" class="loading">等待数据...</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Price Chart -->
|
||||
<section class="card card-wide" id="chart-card">
|
||||
<h2>📈 价格走势</h2>
|
||||
<div class="chart-controls">
|
||||
<select id="chart-coin"></select>
|
||||
<select id="chart-exchange"></select>
|
||||
</div>
|
||||
<div class="chart-container">
|
||||
<canvas id="priceChart"></canvas>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Spread Chart (P3-2) -->
|
||||
<section class="card card-wide" id="spread-chart-card">
|
||||
<h2>📉 价差走势 (BG↔HL)</h2>
|
||||
<div class="chart-controls">
|
||||
<select id="spread-coin"></select>
|
||||
</div>
|
||||
<div class="chart-container">
|
||||
<canvas id="spreadChart"></canvas>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Recent Trades -->
|
||||
<section class="card card-wide" id="trades-card">
|
||||
<h2>📋 历史交易</h2>
|
||||
@@ -132,6 +109,8 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Trade Detail Modal -->
|
||||
|
||||
Reference in New Issue
Block a user