알림 전체닫기 오류 수정

This commit is contained in:
Macbook
2026-06-04 13:00:59 +09:00
parent 5740a9a59d
commit 128b589369
16 changed files with 513 additions and 126 deletions
@@ -171,6 +171,15 @@ public class AppSettingsService {
s.setUpbitSecretKey(secretCrypto.encrypt(v));
}
}
if (d.containsKey("paperOrderFillMode")) {
String mode = d.get("paperOrderFillMode").toString().toUpperCase();
s.setPaperOrderFillMode(
"NEXT_TICK".equals(mode) || "AUTO_CANCEL".equals(mode) ? mode : "LIMIT_ONLY");
}
if (d.containsKey("paperOrderAutoCancelPct")) {
double v = Double.parseDouble(d.get("paperOrderAutoCancelPct").toString());
s.setPaperOrderAutoCancelPct(new java.math.BigDecimal(Math.max(0.1, Math.min(50.0, v))));
}
if (d.containsKey("chartRealtimeSource")) {
String src = d.get("chartRealtimeSource").toString().toUpperCase();
s.setChartRealtimeSource("UPBIT_DIRECT".equals(src) ? "UPBIT_DIRECT" : "BACKEND_STOMP");
@@ -237,6 +246,9 @@ public class AppSettingsService {
UpbitApiCredentials creds = resolveUpbitCredentials(s);
m.put("upbitAccessKeyMasked", SecretCryptoService.maskForDisplay(creds.accessKey()));
m.put("hasUpbitKeys", creds.isComplete());
m.put("paperOrderFillMode", s.getPaperOrderFillMode() != null ? s.getPaperOrderFillMode() : "LIMIT_ONLY");
m.put("paperOrderAutoCancelPct", s.getPaperOrderAutoCancelPct() != null
? s.getPaperOrderAutoCancelPct().doubleValue() : 1.0);
m.put("chartRealtimeSource", s.getChartRealtimeSource() != null ? s.getChartRealtimeSource() : "BACKEND_STOMP");
m.put("liveAutoTradeBudgetPct", s.getLiveAutoTradeBudgetPct() != null
? s.getLiveAutoTradeBudgetPct().doubleValue() : 95);