feat(hub): show floating PnL on market page and drag stop-loss to place TP/SL

Pass unrealized PnL from monitor jump context, refresh from board snapshot, and let users drag the SL price line to call the same place-tpsl API as the monitor entrust dialog.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 19:31:45 +08:00
parent 93e148a3e7
commit e39fac2c16
5 changed files with 313 additions and 7 deletions
+21
View File
@@ -2940,6 +2940,19 @@ body.login-page {
padding: 2px 8px;
}
.market-pos-pnl {
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.market-pos-pnl.pnl-up {
color: #3ddc84;
}
.market-pos-pnl.pnl-down {
color: #ff7070;
}
.market-pos-panel .ohlcv-item {
font-weight: 600;
color: var(--text);
@@ -3283,6 +3296,14 @@ html[data-theme="light"] .market-pos-order-price {
color: #9a6b10;
}
html[data-theme="light"] .market-pos-pnl.pnl-up {
color: #0a7a3d;
}
html[data-theme="light"] .market-pos-pnl.pnl-down {
color: #c62828;
}
html[data-theme="light"] .market-pos-clear {
font-weight: 600;
color: var(--text);