feat: 账户方向与币种白名单 env 开关(三所)
Per-instance TRADE_DIRECTION / TRADE_SYMBOL_WHITELIST restricts UI and API for manual orders, key monitors, and strategies; includes sync script for deployment profiles. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1572,3 +1572,42 @@ html[data-theme="light"] .order-preview-profit strong {
|
||||
color: #087a50 !important;
|
||||
}
|
||||
|
||||
/* ── 账户交易限制(方向 / 币种白名单)── */
|
||||
.trade-policy-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
color: #8fc8ff;
|
||||
background: rgba(31, 58, 90, 0.55);
|
||||
border: 1px solid rgba(143, 200, 255, 0.35);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.trade-policy-dir-lock {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 6px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
color: #4cd97f;
|
||||
background: rgba(76, 217, 127, 0.1);
|
||||
border: 1px solid rgba(76, 217, 127, 0.28);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .trade-policy-badge {
|
||||
color: #1a4a7a;
|
||||
background: #e8f2fb;
|
||||
border-color: #9ec5e8;
|
||||
}
|
||||
|
||||
html[data-theme="light"] .trade-policy-dir-lock {
|
||||
color: #087a50;
|
||||
background: #e8f8f0;
|
||||
border-color: #9ed4b8;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user