feat: 持仓快照盈亏比与交易所止损已保本标识

盈亏比固定用开仓 initial_stop_loss 计算,人工改委托后不变化;轮询交易所止损触发价相对成交价判定已保本,四所实例与中控统一显示绿色标识。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-03 16:31:03 +08:00
parent e265c1b31a
commit cf3e2ee1c9
13 changed files with 486 additions and 52 deletions
+11
View File
@@ -847,6 +847,17 @@ body.market-chart-fs-open {
color: var(--muted);
}
.hub-pos-card .pos-breakeven-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
background: #1a3d2e;
color: #4cd97f;
}
.hub-pos-card .pos-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);