fix(hub): recalc market floating PnL from live chart mark

Use plan margin x leverage x price change with latest K-line close instead of stale board snapshot floating_pnl.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 20:09:35 +08:00
parent e6361a7fcc
commit c9ca106b81
3 changed files with 108 additions and 26 deletions
+2 -2
View File
@@ -249,7 +249,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=20260604-market-pnl-live"></script>
<script src="/assets/app.js?v=20260604-market-pnl-plan"></script>
<script src="/assets/chart.js?v=20260604-market-pnl-calc"></script>
<script src="/assets/app.js?v=20260604-market-pnl-calc"></script>
</body>
</html>