{"openapi":"3.1.0","info":{"title":"priceWatch API","description":"업비트 시세 조회 / 가격 알림. 알림 푸시는 MQTT(EMQX)로 전달 — 같은 accessToken 으로 접속","version":"v1"},"servers":[{"url":"https://devsik.pricewatch.kr","description":"Generated server url"}],"security":[{"bearer":[]}],"paths":{"/api/watchlist/{market}":{"put":{"tags":["watchlist-controller"],"operationId":"add","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["watchlist-controller"],"operationId":"remove","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}}}}},"/api/trading/tpsl/{id}":{"put":{"tags":["trading-rule-controller"],"operationId":"updateTpSl","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TpSlRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["trading-rule-controller"],"operationId":"deleteTpSl","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/rule-buy-limits/{source}/{sourceId}":{"put":{"tags":["buy-limits"],"operationId":"putRuleLimit","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","enum":["ALERT","TPSL","GRID","AI","DCA","DIP"]}},{"name":"sourceId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleLimitRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/regime-filter":{"get":{"tags":["regime-filter-controller"],"operationId":"get","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}},"put":{"tags":["regime-filter-controller"],"operationId":"put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/dips/{id}":{"put":{"tags":["dip-controller"],"operationId":"update","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DipRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["dip-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/dca/{id}":{"put":{"tags":["dca-controller"],"operationId":"update_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DcaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["dca-controller"],"operationId":"delete_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/credential":{"put":{"tags":["trading-controller"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["trading-controller"],"operationId":"deleteCredential","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/coin-exposure":{"get":{"tags":["coin-exposure"],"operationId":"get_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}},"put":{"tags":["coin-exposure"],"operationId":"put_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/buy-limits":{"get":{"tags":["buy-limits"],"operationId":"get_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pct"}}}}}},"put":{"tags":["buy-limits"],"operationId":"put_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pct"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/auto-pause":{"get":{"tags":["auto-pause-controller"],"operationId":"get_3","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoPauseView"}}}}}},"put":{"tags":["auto-pause-controller"],"operationId":"put_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoPauseRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/auto-off-weak":{"get":{"tags":["auto-off-weak-job"],"operationId":"get_4","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoOffWeakView"}}}}}},"put":{"tags":["auto-off-weak-job"],"operationId":"put_4","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoOffWeakRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoOffWeakView"}}}}}}},"/api/trading/alert-rules/{id}":{"put":{"tags":["trading-rule-controller"],"operationId":"updateAlertRule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleUpdate"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["trading-rule-controller"],"operationId":"deleteAlertRule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/ai-rules/{id}":{"put":{"tags":["ai-rule-controller"],"operationId":"update_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["ai-rule-controller"],"operationId":"delete_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/ai-defaults":{"get":{"tags":["ai-rule-defaults"],"operationId":"get_5","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}},"put":{"tags":["ai-rule-defaults"],"operationId":"put_5","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}}},"/api/notification-prefs":{"get":{"tags":["notification-pref-controller"],"operationId":"get_6","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prefs"}}}}}},"put":{"tags":["notification-pref-controller"],"operationId":"update_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/notification-prefs/summary-times":{"get":{"tags":["notification-pref-controller"],"operationId":"summaryTimes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryTimesView"}}}}}},"put":{"tags":["notification-pref-controller"],"operationId":"updateSummaryTimes","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryTimesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/notification-prefs/mute":{"put":{"tags":["notification-pref-controller"],"operationId":"mute","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MuteRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prefs"}}}}}},"delete":{"tags":["notification-pref-controller"],"operationId":"unmute","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prefs"}}}}}}},"/api/markets/{market}":{"put":{"tags":["member-market-controller"],"operationId":"add_1","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/discord/webhook":{"put":{"tags":["discord-controller"],"operationId":"register_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["discord-controller"],"operationId":"unregister","responses":{"200":{"description":"OK"}}}},"/api/admin/markets/{market}":{"put":{"tags":["market-admin-controller"],"operationId":"add_2","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["market-admin-controller"],"operationId":"remove_1","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/tpsl":{"get":{"tags":["trading-rule-controller"],"operationId":"tpsl","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TpSlView"}}}}}}},"post":{"tags":["trading-rule-controller"],"operationId":"createTpSl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TpSlRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/paper/reset":{"post":{"tags":["trading-controller"],"operationId":"resetPaper","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaperResetRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/grids":{"get":{"tags":["grid-controller"],"operationId":"list","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GridView"}}}}}}},"post":{"tags":["grid-controller"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GridRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/grids/{id}/stop":{"post":{"tags":["grid-controller"],"operationId":"stop","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"sellAll","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/dips":{"get":{"tags":["dip-controller"],"operationId":"list_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DipView"}}}}}}},"post":{"tags":["dip-controller"],"operationId":"create_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DipRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/dca":{"get":{"tags":["dca-controller"],"operationId":"list_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DcaView"}}}}}}},"post":{"tags":["dca-controller"],"operationId":"create_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DcaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/backtest":{"post":{"tags":["backtest-controller"],"operationId":"run","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BacktestRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/backtest/grid-compare":{"post":{"tags":["backtest-controller"],"operationId":"compareGrids","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GridCompareRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/backtest/ai-compare":{"post":{"tags":["backtest-controller"],"operationId":"compareAi","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiCompareRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/alert-rules":{"get":{"tags":["trading-rule-controller"],"operationId":"alertRules","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertRuleView"}}}}}}},"post":{"tags":["trading-rule-controller"],"operationId":"createAlertRule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/ai-rules":{"get":{"tags":["ai-rule-controller"],"operationId":"list_3","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AiRuleView"}}}}}}},"post":{"tags":["ai-rule-controller"],"operationId":"create_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiRuleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/ai-rules/{id}/clone":{"post":{"tags":["ai-rule-controller"],"operationId":"cloneTo","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/telegram/test":{"post":{"tags":["telegram-controller"],"operationId":"test","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/telegram/link":{"post":{"tags":["telegram-controller"],"operationId":"link","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["telegram-controller"],"operationId":"unlink","responses":{"200":{"description":"OK"}}}},"/api/push/test":{"post":{"tags":["web-push-controller"],"operationId":"test_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}}}}}},"/api/push/subscriptions":{"post":{"tags":["web-push-controller"],"operationId":"subscribe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["web-push-controller"],"operationId":"unsubscribe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/push/action":{"post":{"tags":["web-push-controller"],"operationId":"action","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/discord/test":{"post":{"tags":["discord-controller"],"operationId":"test_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/withdraw":{"post":{"tags":["auth-controller"],"operationId":"withdraw","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/totp/setup":{"post":{"tags":["account-security-controller"],"operationId":"setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/totp/enable":{"post":{"tags":["account-security-controller"],"operationId":"enable","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/totp/disable":{"post":{"tags":["account-security-controller"],"operationId":"disable","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/signup":{"post":{"tags":["auth-controller"],"operationId":"signup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/sessions/logout-others":{"post":{"tags":["session-controller"],"operationId":"logoutOthers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}}}}}},"/api/auth/reset-password":{"post":{"tags":["account-security-controller"],"operationId":"reset","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/refresh":{"post":{"tags":["auth-controller"],"operationId":"refresh","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}}}}},"/api/auth/recovery-codes":{"post":{"tags":["account-security-controller"],"operationId":"regenerate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/password":{"post":{"tags":["auth-controller"],"operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth-controller"],"operationId":"logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/auth/login":{"post":{"tags":["auth-controller"],"operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/analysis/run":{"post":{"tags":["analysis-controller"],"operationId":"runNow","parameters":[{"name":"market","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts":{"get":{"tags":["alert-controller"],"operationId":"list_4","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PriceAlert"}}}}}}},"post":{"tags":["alert-controller"],"operationId":"create_4","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAlertRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts/simulate":{"post":{"tags":["alert-simulation-controller"],"operationId":"simulate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts/bulk":{"post":{"tags":["alert-bulk-controller"],"operationId":"create_5","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts/bulk-delete":{"post":{"tags":["alert-bulk-controller"],"operationId":"delete_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}}}}}},"/api/admin/trading/halt":{"get":{"tags":["trading-halt-controller"],"operationId":"state","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}}}},"post":{"tags":["trading-halt-controller"],"operationId":"halt","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HaltRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}}}},"delete":{"tags":["trading-halt-controller"],"operationId":"resume","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}}}}},"/api/admin/news/sources":{"post":{"tags":["news-admin-controller"],"operationId":"add_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/admin/news/rematch":{"post":{"tags":["news-admin-controller"],"operationId":"rematch","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExclusionResult"}}}}}}},"/api/admin/news/fetch":{"post":{"tags":["news-admin-controller"],"operationId":"fetch","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchResult"}}}}}}},"/api/admin/news/exclusions":{"get":{"tags":["news-admin-controller"],"operationId":"exclusions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExclusionView"}}}}}}},"post":{"tags":["news-admin-controller"],"operationId":"addExclusion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExclusionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/admin/analysis/run":{"post":{"tags":["analysis-controller"],"operationId":"run_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/admin/alerts/test":{"post":{"tags":["ops-controller"],"operationId":"testAlerts","parameters":[{"name":"target","in":"query","required":false,"schema":{"type":"string","default":"alert"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChannelResult"}}}}}}}},"/api/trading/settings":{"patch":{"tags":["trading-controller"],"operationId":"updateSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/grids/{id}":{"get":{"tags":["grid-controller"],"operationId":"get_7","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GridView"}}}}}},"delete":{"tags":["grid-controller"],"operationId":"delete_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"patch":{"tags":["grid-controller"],"operationId":"update_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GridUpdate"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/dips/{id}/enabled":{"patch":{"tags":["dip-controller"],"operationId":"toggle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"value","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/dca/{id}/enabled":{"patch":{"tags":["dca-controller"],"operationId":"toggle_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"value","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/alert-rules/{id}/enabled":{"patch":{"tags":["trading-rule-controller"],"operationId":"toggleAlertRule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"value","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/api/trading/ai-rules/{id}/enabled":{"patch":{"tags":["ai-rule-controller"],"operationId":"toggle_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"value","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/ai-rules/bulk":{"patch":{"tags":["ai-rule-controller"],"operationId":"bulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts/{id}":{"delete":{"tags":["alert-controller"],"operationId":"delete_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}},"patch":{"tags":["alert-controller"],"operationId":"update_5","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAlertRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts/{id}/enabled":{"patch":{"tags":["alert-controller"],"operationId":"toggle_3","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"value","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/api/admin/news/sources/{id}/enabled":{"patch":{"tags":["news-admin-controller"],"operationId":"toggle_4","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"value","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/api/watchlist":{"get":{"tags":["watchlist-controller"],"operationId":"list_5","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Watchlist"}}}}}}},"/api/trading/weekly":{"get":{"tags":["weekly-report-controller"],"operationId":"weekly","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}}},"/api/trading/status":{"get":{"tags":["trading-controller"],"operationId":"status","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusView"}}}}}}},"/api/trading/slippage":{"get":{"tags":["slippage-controller"],"operationId":"slippage","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlippageReport"}}}}}}},"/api/trading/skips":{"get":{"tags":["skip-stats-controller"],"operationId":"skips","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SkipStat"}}}}}}}},"/api/trading/rule-changes":{"get":{"tags":["rule-change-log"],"operationId":"list_6","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":90}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChangeView"}}}}}}}},"/api/trading/rule-buy-limits":{"get":{"tags":["buy-limits"],"operationId":"ruleLimits","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleLimit"}}}}}}}},"/api/trading/performance":{"get":{"tags":["performance-controller"],"operationId":"performance","parameters":[{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["PAPER","LIVE"]}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RulePerformance"}}}}}}}},"/api/trading/performance/{source}/{sourceId}/timeline":{"get":{"tags":["performance-controller"],"operationId":"timeline","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","enum":["ALERT","TPSL","GRID","AI","DCA","DIP"]}},{"name":"sourceId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["PAPER","LIVE"]}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Timeline"}}}}}}},"/api/trading/paper":{"get":{"tags":["trading-controller"],"operationId":"paper","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaperView"}}}}}}},"/api/trading/orders":{"get":{"tags":["trading-controller"],"operationId":"orders","parameters":[{"name":"before","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["ALERT","TPSL","GRID","AI","DCA","DIP"]}},{"name":"sourceId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"market","in":"query","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["PAPER","LIVE"]}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["REQUESTED","SUBMITTING","WAIT","DONE","CANCELLED","FAILED","SKIPPED"]}}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderView"}}}}}}}},"/api/trading/orders/{id}/signal":{"get":{"tags":["trading-controller"],"operationId":"orderSignal","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSignal"}}}}}}},"/api/trading/orders/summary":{"get":{"tags":["trading-controller"],"operationId":"orderSummary","parameters":[{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["ALERT","TPSL","GRID","AI","DCA","DIP"]}},{"name":"sourceId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"market","in":"query","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["PAPER","LIVE"]}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["REQUESTED","SUBMITTING","WAIT","DONE","CANCELLED","FAILED","SKIPPED"]}}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSummary"}}}}}}},"/api/trading/live-protection":{"get":{"tags":["live-start-protection"],"operationId":"view","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProtectionView"}}}}}}},"/api/trading/ledger":{"get":{"tags":["ledger-controller"],"operationId":"check","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/export":{"get":{"tags":["trading-controller"],"operationId":"export","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportView"}}}}}}},"/api/trading/equity":{"get":{"tags":["equity-controller"],"operationId":"history","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Point"}}}}}}}},"/api/trading/balances":{"get":{"tags":["trading-controller"],"operationId":"balances","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/trading/ai-exposure":{"get":{"tags":["ai-exposure"],"operationId":"list_7","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/View"}}}}}}}},"/api/telegram":{"get":{"tags":["telegram-controller"],"operationId":"status_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/api/quotes":{"get":{"tags":["quote-controller"],"operationId":"latestAll","parameters":[{"name":"markets","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/quotes/{market}":{"get":{"tags":["quote-controller"],"operationId":"latest","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticker"}}}}}}},"/api/quotes/{market}/history":{"get":{"tags":["quote-controller"],"operationId":"history_1","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":60}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":500}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Ticker"}}}}}}}},"/api/quotes/{market}/candles":{"get":{"tags":["quote-controller"],"operationId":"candles","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string"}},{"name":"interval","in":"query","required":false,"schema":{"type":"string","default":"1m"}},{"name":"count","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":200}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/quotes/stream":{"get":{"tags":["quote-controller"],"operationId":"stream","responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/api/quotes/accounts":{"get":{"tags":["quote-controller"],"operationId":"accounts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}}}}}},"/api/push/public-key":{"get":{"tags":["web-push-controller"],"operationId":"publicKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/news":{"get":{"tags":["news-controller"],"operationId":"list_8","parameters":[{"name":"market","in":"query","required":false,"schema":{"type":"string"}},{"name":"matchedOnly","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"before","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}}}}},"/api/news/markets":{"get":{"tags":["news-controller"],"operationId":"markets","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MarketCount"}}}}}}}},"/api/markets/catalog":{"get":{"tags":["member-market-controller"],"operationId":"catalog","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/discord":{"get":{"tags":["discord-controller"],"operationId":"status_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/api/auth/sessions":{"get":{"tags":["session-controller"],"operationId":"list_9","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionView"}}}}}}}},"/api/auth/security":{"get":{"tags":["account-security-controller"],"operationId":"status_3","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/api/auth/me":{"get":{"tags":["auth-controller"],"operationId":"me","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}}}},"/api/analysis/status":{"get":{"tags":["analysis-controller"],"operationId":"status_4","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusView"}}}}}}},"/api/analysis/signals":{"get":{"tags":["analysis-controller"],"operationId":"signals","parameters":[{"name":"market","in":"query","required":false,"schema":{"type":"string"}},{"name":"before","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignalView"}}}}}}}},"/api/analysis/signals/{id}":{"get":{"tags":["analysis-controller"],"operationId":"signal","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalView"}}}}}}},"/api/analysis/performance":{"get":{"tags":["analysis-controller"],"operationId":"performance_1","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}},{"name":"timeframe","in":"query","required":false,"schema":{"type":"string"}},{"name":"horizon","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/analysis/performance/news":{"get":{"tags":["analysis-controller"],"operationId":"performanceByNews","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}},{"name":"horizon","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NewsPerformance"}}}}}}}},"/api/analysis/performance/confidence":{"get":{"tags":["analysis-controller"],"operationId":"performanceByConfidence","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"timeframe","in":"query","required":false,"schema":{"type":"string"}},{"name":"market","in":"query","required":false,"schema":{"type":"string"}},{"name":"horizon","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/analysis/latest":{"get":{"tags":["analysis-controller"],"operationId":"latest_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignalView"}}}}}}}},"/api/analysis/grid-suggestion":{"get":{"tags":["analysis-controller"],"operationId":"gridSuggestion","parameters":[{"name":"market","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/alerts/history":{"get":{"tags":["alert-controller"],"operationId":"history_2","parameters":[{"name":"before","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertHistoryEntry"}}}}}}}},"/api/admin/uptime":{"get":{"tags":["ops-controller"],"operationId":"uptime","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}}},"/api/admin/trading/overview":{"get":{"tags":["trading-admin-controller"],"operationId":"overview","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Overview"}}}}}}},"/api/admin/storage":{"get":{"tags":["storage-admin-controller"],"operationId":"storage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageView"}}}}}}},"/api/admin/ops":{"get":{"tags":["ops-controller"],"operationId":"ops","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}}},"/api/admin/ops/daily":{"get":{"tags":["ops-controller"],"operationId":"daily","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":7}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}}}}},"/api/admin/news":{"get":{"tags":["news-admin-controller"],"operationId":"get_8","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsView"}}}}}}},"/api/admin/markets":{"get":{"tags":["market-admin-controller"],"operationId":"list_10","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketsResponse"}}}}}}},"/api/admin/markets/details":{"get":{"tags":["market-admin-controller"],"operationId":"details","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MarketDetail"}}}}}}}},"/api/auth/sessions/{id}":{"delete":{"tags":["session-controller"],"operationId":"revoke","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/admin/news/sources/{id}":{"delete":{"tags":["news-admin-controller"],"operationId":"delete_6","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/admin/news/exclusions/{id}":{"delete":{"tags":["news-admin-controller"],"operationId":"deleteExclusion","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"TpSlRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"basePrice":{"type":"number","exclusiveMinimum":0},"takeProfitPct":{"type":"number","exclusiveMinimum":0,"maximum":1000},"stopLossPct":{"type":"number","exclusiveMaximum":100,"exclusiveMinimum":0},"sellPercent":{"type":"number","exclusiveMinimum":0,"maximum":100},"mode":{"type":"string","enum":["PAPER","LIVE"]},"aiFilter":{"type":"boolean"},"trailingPct":{"type":"number","exclusiveMaximum":100,"exclusiveMinimum":0}},"required":["market"]},"RuleLimitRequest":{"type":"object","properties":{"dailyKrw":{"type":"number"}}},"Request":{"type":"object","properties":{"enabled":{"type":"boolean"},"dropPct":{"type":"number"}}},"DipRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"basePrice":{"type":"number","exclusiveMinimum":0},"stepPct":{"type":"number","exclusiveMinimum":0,"maximum":50},"krwAmount":{"type":"number","exclusiveMinimum":0},"maxBuys":{"type":"integer","format":"int32","maximum":20,"minimum":1},"stopLossPct":{"type":"number","exclusiveMaximum":100,"exclusiveMinimum":0},"mode":{"type":"string","enum":["PAPER","LIVE"]}},"required":["krwAmount","market","maxBuys","stepPct"]},"DcaRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"krwAmount":{"type":"number","exclusiveMinimum":0},"period":{"type":"string","enum":["DAILY","WEEKLY"]},"dayOfWeek":{"type":"integer","format":"int32","maximum":7,"minimum":1},"hour":{"type":"integer","format":"int32","maximum":23,"minimum":0},"mode":{"type":"string","enum":["PAPER","LIVE"]}},"required":["hour","krwAmount","market","period"]},"CredentialRequest":{"type":"object","properties":{"accessKey":{"type":"string","minLength":1},"secretKey":{"type":"string","minLength":1},"otp":{"type":"string"}},"required":["accessKey","secretKey"]},"Pct":{"type":"object","properties":{"maxOrderPct":{"type":"integer","format":"int32"},"dailyBuyPct":{"type":"integer","format":"int32"}}},"AutoPauseRequest":{"type":"object","properties":{"paper":{"type":"integer","format":"int32"},"live":{"type":"integer","format":"int32"}}},"AutoOffWeakRequest":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"AutoOffWeakView":{"type":"object","properties":{"enabled":{"type":"boolean"},"days":{"type":"integer","format":"int32"}}},"AlertRuleUpdate":{"type":"object","properties":{"side":{"type":"string","enum":["BID","ASK"]},"krwAmount":{"type":"number","exclusiveMinimum":0},"sellPercent":{"type":"number","exclusiveMinimum":0,"maximum":100},"mode":{"type":"string","enum":["PAPER","LIVE"]},"aiFilter":{"type":"boolean"}},"required":["side"]},"AiRuleRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"buyKrw":{"type":"number","exclusiveMinimum":0},"sellPercent":{"type":"number","exclusiveMinimum":0,"maximum":100},"minConfidence":{"type":"integer","format":"int32","maximum":100,"minimum":0},"sellMinConfidence":{"type":"integer","format":"int32","maximum":100,"minimum":0},"onChangeOnly":{"type":"boolean"},"mode":{"type":"string","enum":["PAPER","LIVE"]},"stopLossPct":{"type":"number","maximum":90,"minimum":0},"sellBasis":{"type":"string","enum":["RULE","ACCOUNT"]},"takeProfitPct":{"type":"number","maximum":1000,"minimum":0},"trailingPct":{"type":"number","maximum":90,"minimum":0},"takeProfitDefer":{"type":"boolean"},"maxPositionKrw":{"type":"number","minimum":0},"stopCooldownHours":{"type":"integer","format":"int32","maximum":720,"minimum":0},"buyKrwMax":{"type":"number","minimum":0},"sellConfirm":{"type":"integer","format":"int32","maximum":5,"minimum":1},"minHoldMinutes":{"type":"integer","format":"int32","maximum":10080,"minimum":0},"trailingActivatePct":{"type":"number","maximum":100,"minimum":0}},"required":["market"]},"Saved":{"type":"object","properties":{"minConfidence":{"type":"integer","format":"int32","maximum":100,"minimum":0},"sellMinConfidence":{"type":"integer","format":"int32","maximum":100,"minimum":0},"stopLossPct":{"type":"number","maximum":90,"minimum":0},"takeProfitPct":{"type":"number","maximum":1000,"minimum":0},"trailingPct":{"type":"number","maximum":90,"minimum":0},"takeProfitDefer":{"type":"boolean"},"stopCooldownHours":{"type":"integer","format":"int32","maximum":720,"minimum":0},"positionMultiple":{"type":"number","maximum":100,"minimum":0}}},"Preset":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"values":{"$ref":"#/components/schemas/Values"}}},"Values":{"type":"object","properties":{"minConfidence":{"type":"integer","format":"int32"},"sellMinConfidence":{"type":"integer","format":"int32"},"stopLossPct":{"type":"number"},"takeProfitPct":{"type":"number"},"trailingPct":{"type":"number"},"takeProfitDefer":{"type":"boolean"},"stopCooldownHours":{"type":"integer","format":"int32"},"positionMultiple":{"type":"number"}}},"View":{"type":"object","properties":{"effective":{"$ref":"#/components/schemas/Values"},"saved":{"$ref":"#/components/schemas/Saved"},"presets":{"type":"array","items":{"$ref":"#/components/schemas/Preset"}}}},"UpdateRequest":{"type":"object","properties":{"webPush":{"type":"boolean"},"telegram":{"type":"boolean"},"quietStart":{"type":"string","format":"time-local"},"quietEnd":{"type":"string","format":"time-local"},"dailyDigest":{"type":"boolean"},"gridFills":{"type":"boolean"},"aiSignals":{"type":"boolean"},"discord":{"type":"boolean"}},"required":["telegram","webPush"]},"SummaryTimesRequest":{"type":"object","properties":{"digestTime":{"type":"string","format":"time-local"},"liveDailyTime":{"type":"string","format":"time-local"},"weeklyDay":{"type":"integer","format":"int32","maximum":7,"minimum":1},"weeklyTime":{"type":"string","format":"time-local"}}},"MuteRequest":{"type":"object","properties":{"minutes":{"type":"integer","format":"int32","maximum":10080,"minimum":1}},"required":["minutes"]},"Prefs":{"type":"object","properties":{"webPush":{"type":"boolean"},"telegram":{"type":"boolean"},"quietStart":{"type":"string"},"quietEnd":{"type":"string"},"mutedUntil":{"type":"string","format":"date-time"},"dailyDigest":{"type":"boolean"},"gridFills":{"type":"boolean"},"aiSignals":{"type":"boolean"},"timeZone":{"type":"string"},"discord":{"type":"boolean"}}},"WebhookRequest":{"type":"object","properties":{"url":{"type":"string","minLength":1}},"required":["url"]},"PaperResetRequest":{"type":"object","properties":{"initialKrw":{"type":"number","exclusiveMinimum":0},"clearHistory":{"type":"boolean"},"stopPaperRules":{"type":"boolean"}}},"GridRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"lowerPrice":{"type":"number","exclusiveMinimum":0},"upperPrice":{"type":"number","exclusiveMinimum":0},"gridCount":{"type":"integer","format":"int32","minimum":2},"orderKrw":{"type":"number","exclusiveMinimum":0},"mode":{"type":"string","enum":["PAPER","LIVE"]}},"required":["gridCount","lowerPrice","market","orderKrw","upperPrice"]},"BacktestRequest":{"type":"object","properties":{"type":{"type":"string","enum":["GRID","DCA","AI"]},"market":{"type":"string","minLength":1},"days":{"type":"integer","format":"int32"},"lowerPrice":{"type":"number"},"upperPrice":{"type":"number"},"gridCount":{"type":"integer","format":"int32"},"orderKrw":{"type":"number"},"krwAmount":{"type":"number"},"period":{"type":"string","enum":["DAILY","WEEKLY"]},"dayOfWeek":{"type":"integer","format":"int32"},"hour":{"type":"integer","format":"int32"},"buyKrw":{"type":"number"},"sellPercent":{"type":"number"},"minConfidence":{"type":"integer","format":"int32"},"sellMinConfidence":{"type":"integer","format":"int32"},"onChangeOnly":{"type":"boolean"},"stopLossPct":{"type":"number"},"takeProfitPct":{"type":"number"},"trailingPct":{"type":"number"},"takeProfitDefer":{"type":"boolean"},"maxPositionKrw":{"type":"number"},"stopCooldownHours":{"type":"integer","format":"int32"},"sellConfirm":{"type":"integer","format":"int32"},"minHoldMinutes":{"type":"integer","format":"int32"},"trailingActivatePct":{"type":"number"},"regimeFilter":{"type":"boolean"},"regimeDropPct":{"type":"number"}},"required":["market","type"]},"GridCompareRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"days":{"type":"integer","format":"int32"},"totalKrw":{"type":"number"},"widthPercents":{"type":"array","items":{"type":"integer","format":"int32"}},"gridCounts":{"type":"array","items":{"type":"integer","format":"int32"}}},"required":["market","totalKrw"]},"AiCompareRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1},"days":{"type":"integer","format":"int32"},"buyKrw":{"type":"number"},"sellPercent":{"type":"number"},"onChangeOnly":{"type":"boolean"},"confidences":{"type":"array","items":{"type":"integer","format":"int32"}},"sellGap":{"type":"integer","format":"int32"},"stopLossPct":{"type":"number"},"takeProfitPct":{"type":"number"},"trailingPct":{"type":"number"},"takeProfitDefer":{"type":"boolean"},"maxPositionKrw":{"type":"number"},"stopCooldownHours":{"type":"integer","format":"int32"},"sellConfirm":{"type":"integer","format":"int32"},"minHoldMinutes":{"type":"integer","format":"int32"},"trailingActivatePct":{"type":"number"}},"required":["market"]},"AlertRuleRequest":{"type":"object","properties":{"alertId":{"type":"integer","format":"int64"},"side":{"type":"string","enum":["BID","ASK"]},"krwAmount":{"type":"number","exclusiveMinimum":0},"sellPercent":{"type":"number","exclusiveMinimum":0,"maximum":100},"mode":{"type":"string","enum":["PAPER","LIVE"]},"aiFilter":{"type":"boolean"}},"required":["alertId","side"]},"CloneRequest":{"type":"object","properties":{"markets":{"type":"array","items":{"type":"string"},"maxItems":30,"minItems":0}},"required":["markets"]},"Keys":{"type":"object","properties":{"p256dh":{"type":"string","maxLength":128,"minLength":0},"auth":{"type":"string","maxLength":64,"minLength":0}},"required":["auth","p256dh"]},"SubscribeRequest":{"type":"object","properties":{"endpoint":{"type":"string","maxLength":2048,"minLength":0},"keys":{"$ref":"#/components/schemas/Keys"}},"required":["endpoint","keys"]},"ActionRequest":{"type":"object","properties":{"token":{"type":"string","maxLength":2048,"minLength":0},"action":{"type":"string","enum":["DISABLE_ALERT","MUTE_1H","DISABLE_RULE"]}},"required":["action","token"]},"WithdrawRequest":{"type":"object","properties":{"password":{"type":"string","maxLength":72,"minLength":0},"otp":{"type":"string","maxLength":20,"minLength":0}},"required":["password"]},"PasswordRequest":{"type":"object","properties":{"password":{"type":"string","maxLength":72,"minLength":0},"code":{"type":"string","maxLength":20,"minLength":0}},"required":["password"]},"CodeRequest":{"type":"object","properties":{"code":{"type":"string","maxLength":20,"minLength":0}},"required":["code"]},"SignupRequest":{"type":"object","properties":{"username":{"type":"string","minLength":1,"pattern":"^[a-z0-9_-]{3,32}$"},"password":{"type":"string","maxLength":72,"minLength":8},"email":{"type":"string","format":"email","maxLength":254,"minLength":0},"phone":{"type":"string","minLength":1,"pattern":"^\\s*01[016789][-\\s]?\\d{3,4}[-\\s]?\\d{4}\\s*$"}},"required":["email","password","phone","username"]},"ResetRequest":{"type":"object","properties":{"username":{"type":"string","minLength":1,"pattern":"^[a-z0-9_-]{3,32}$"},"recoveryCode":{"type":"string","maxLength":20,"minLength":0},"newPassword":{"type":"string","maxLength":72,"minLength":8}},"required":["newPassword","recoveryCode","username"]},"RefreshRequest":{"type":"object","properties":{"refreshToken":{"type":"string","maxLength":100,"minLength":0}},"required":["refreshToken"]},"TokenResponse":{"type":"object","properties":{"accessToken":{"type":"string"},"tokenType":{"type":"string"},"expiresIn":{"type":"integer","format":"int64"},"refreshToken":{"type":"string"},"refreshExpiresIn":{"type":"integer","format":"int64"},"username":{"type":"string"}}},"ChangePasswordRequest":{"type":"object","properties":{"currentPassword":{"type":"string","maxLength":72,"minLength":0},"newPassword":{"type":"string","maxLength":72,"minLength":8},"otp":{"type":"string","maxLength":20,"minLength":0}},"required":["currentPassword","newPassword"]},"LoginRequest":{"type":"object","properties":{"username":{"type":"string","maxLength":32,"minLength":0},"password":{"type":"string","maxLength":72,"minLength":0},"otp":{"type":"string","maxLength":20,"minLength":0},"remember":{"type":"boolean"}},"required":["password","username"]},"CreateAlertRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1,"pattern":"^[A-Z]+-[A-Z0-9]+$"},"condition":{"type":"string","enum":["ABOVE","BELOW","CHANGE_ABOVE","CHANGE_BELOW","RISE_WITHIN","DROP_WITHIN","VOLUME_SPIKE"]},"targetPrice":{"type":"number","exclusiveMinimum":0},"targetRate":{"type":"number","exclusiveMinimum":-100,"maximum":1000},"windowMinutes":{"type":"integer","format":"int32","maximum":60,"minimum":1},"cooldownSeconds":{"type":"integer","format":"int32","maximum":86400,"minimum":60},"oneShot":{"type":"boolean"}},"required":["condition","market"]},"SimulateRequest":{"type":"object","properties":{"market":{"type":"string","minLength":1,"pattern":"^[A-Z]+-[A-Z0-9]+$"},"condition":{"type":"string","enum":["ABOVE","BELOW","CHANGE_ABOVE","CHANGE_BELOW","RISE_WITHIN","DROP_WITHIN","VOLUME_SPIKE"]},"targetPrice":{"type":"number","exclusiveMinimum":0},"targetRate":{"type":"number","exclusiveMinimum":-100,"maximum":1000},"windowMinutes":{"type":"integer","format":"int32","maximum":60,"minimum":1},"cooldownSeconds":{"type":"integer","format":"int32","maximum":86400,"minimum":60},"oneShot":{"type":"boolean"},"days":{"type":"integer","format":"int32","maximum":30,"minimum":1}},"required":["condition","market"]},"BulkCreateRequest":{"type":"object","properties":{"markets":{"type":"array","items":{"type":"string","pattern":"^[A-Z]+-[A-Z0-9]+$"},"maxItems":100,"minItems":0},"condition":{"type":"string","enum":["ABOVE","BELOW","CHANGE_ABOVE","CHANGE_BELOW","RISE_WITHIN","DROP_WITHIN","VOLUME_SPIKE"]},"targetRate":{"type":"number","exclusiveMinimum":-100,"maximum":1000},"windowMinutes":{"type":"integer","format":"int32","maximum":60,"minimum":1},"cooldownSeconds":{"type":"integer","format":"int32","maximum":86400,"minimum":60},"oneShot":{"type":"boolean"}},"required":["condition","markets"]},"BulkDeleteRequest":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer","format":"int64"},"maxItems":500,"minItems":0}},"required":["ids"]},"HaltRequest":{"type":"object","properties":{"reason":{"type":"string"}}},"State":{"type":"object","properties":{"halted":{"type":"boolean"},"reason":{"type":"string"},"changedBy":{"type":"string"},"since":{"type":"string","format":"date-time"}}},"AddRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"minLength":0},"url":{"type":"string","maxLength":500,"minLength":0}},"required":["name","url"]},"ExclusionResult":{"type":"object","properties":{"rematched":{"type":"integer","format":"int32"}}},"FetchResult":{"type":"object","properties":{"added":{"type":"integer","format":"int32"}}},"ExclusionRequest":{"type":"object","properties":{"term":{"type":"string","maxLength":100,"minLength":0},"market":{"type":"string","maxLength":30,"minLength":0}},"required":["term"]},"ChannelResult":{"type":"object","properties":{"channel":{"type":"string"},"label":{"type":"string"},"configured":{"type":"boolean"},"ok":{"type":"boolean"},"error":{"type":"string"}}},"SettingsRequest":{"type":"object","properties":{"paused":{"type":"boolean"},"maxOrderKrw":{"type":"number","exclusiveMinimum":0},"dailyBuyLimitKrw":{"type":"number","exclusiveMinimum":0},"dailyLossLimitKrw":{"type":"number","minimum":0},"weeklyLossLimitKrw":{"type":"number","minimum":0},"aiExposurePct":{"type":"integer","format":"int32","maximum":100,"minimum":0},"paperMaxOrderKrw":{"type":"number","minimum":0},"paperDailyBuyLimitKrw":{"type":"number","minimum":0}}},"GridUpdate":{"type":"object","properties":{"orderKrw":{"type":"number","exclusiveMinimum":0}},"required":["orderKrw"]},"BulkRequest":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer","format":"int64"},"maxItems":200,"minItems":0},"minConfidence":{"type":"integer","format":"int32","maximum":100,"minimum":0},"sellMinConfidence":{"type":"integer","format":"int32","maximum":100,"minimum":0},"stopLossPct":{"type":"number","maximum":90,"minimum":0},"takeProfitPct":{"type":"number","maximum":1000,"minimum":0},"trailingPct":{"type":"number","maximum":90,"minimum":0},"takeProfitDefer":{"type":"boolean"},"maxPositionKrw":{"type":"number","minimum":0},"enabled":{"type":"boolean"},"stopCooldownHours":{"type":"integer","format":"int32","maximum":720,"minimum":0},"sellConfirm":{"type":"integer","format":"int32","maximum":5,"minimum":1},"minHoldMinutes":{"type":"integer","format":"int32","maximum":10080,"minimum":0},"trailingActivatePct":{"type":"number","maximum":100,"minimum":0}},"required":["ids"]},"UpdateAlertRequest":{"type":"object","properties":{"condition":{"type":"string","enum":["ABOVE","BELOW","CHANGE_ABOVE","CHANGE_BELOW","RISE_WITHIN","DROP_WITHIN","VOLUME_SPIKE"]},"targetPrice":{"type":"number","exclusiveMinimum":0},"targetRate":{"type":"number","exclusiveMinimum":-100,"maximum":1000},"windowMinutes":{"type":"integer","format":"int32","maximum":60,"minimum":1},"cooldownSeconds":{"type":"integer","format":"int32","maximum":86400,"minimum":60},"oneShot":{"type":"boolean"}}},"Watchlist":{"type":"object","properties":{"markets":{"type":"array","items":{"type":"string"}}}},"TpSlView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"basePrice":{"type":"number"},"takeProfitPct":{"type":"number"},"stopLossPct":{"type":"number"},"takeProfitPrice":{"type":"number"},"stopLossPrice":{"type":"number"},"sellPercent":{"type":"number"},"mode":{"type":"string"},"status":{"type":"string"},"triggerPrice":{"type":"number"},"triggeredAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"aiFilter":{"type":"boolean"},"trailingPct":{"type":"number"},"trailingPeak":{"type":"number"},"trailingStopPrice":{"type":"number"}}},"CredentialInfo":{"type":"object","properties":{"accessKeyHint":{"type":"string"},"verifiedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}}},"Limits":{"type":"object","properties":{"minOrderKrw":{"type":"number"},"feeRate":{"type":"number"},"maxRulesPerUser":{"type":"integer","format":"int32"},"maxGridsPerUser":{"type":"integer","format":"int32"},"maxGridCount":{"type":"integer","format":"int32"}}},"Settings":{"type":"object","properties":{"paused":{"type":"boolean"},"maxOrderKrw":{"type":"number"},"dailyBuyLimitKrw":{"type":"number"},"dailyLossLimitKrw":{"type":"number"},"weeklyLossLimitKrw":{"type":"number"},"pausedReason":{"type":"string"},"aiExposurePct":{"type":"integer","format":"int32"},"paperMaxOrderKrw":{"type":"number"},"paperDailyBuyLimitKrw":{"type":"number"}}},"StatusView":{"type":"object","properties":{"available":{"type":"boolean"},"liveEnabled":{"type":"boolean"},"serverIp":{"type":"string"},"credential":{"$ref":"#/components/schemas/CredentialInfo"},"settings":{"$ref":"#/components/schemas/Settings"},"limits":{"$ref":"#/components/schemas/Limits"},"todayLiveBuyKrw":{"type":"number"},"halt":{"$ref":"#/components/schemas/State"}}},"MarketSlippage":{"type":"object","properties":{"market":{"type":"string"},"fills":{"type":"integer","format":"int32"},"actualPct":{"type":"number","format":"double"},"modelPct":{"type":"number","format":"double"},"worstPct":{"type":"number","format":"double"}}},"SlippageReport":{"type":"object","properties":{"fills":{"type":"integer","format":"int32"},"actualPct":{"type":"number","format":"double"},"modelPct":{"type":"number","format":"double"},"markets":{"type":"array","items":{"$ref":"#/components/schemas/MarketSlippage"}}}},"SkipStat":{"type":"object","properties":{"reason":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","format":"int32"},"bySource":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}},"byMode":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}},"lastError":{"type":"string"},"lastAt":{"type":"string","format":"date-time"}}},"ChangeView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"sourceId":{"type":"integer","format":"int64"},"market":{"type":"string"},"summary":{"type":"string"},"changedAt":{"type":"string","format":"date-time"},"before":{"$ref":"#/components/schemas/Stat"},"after":{"$ref":"#/components/schemas/Stat"}}},"Stat":{"type":"object","properties":{"filled":{"type":"integer","format":"int32"},"sells":{"type":"integer","format":"int32"},"wins":{"type":"integer","format":"int32"},"realizedPnl":{"type":"number"},"totalPnl":{"type":"number"},"returnPercent":{"type":"number"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}},"RuleLimit":{"type":"object","properties":{"source":{"type":"string"},"sourceId":{"type":"integer","format":"int64"},"dailyKrw":{"type":"number"}}},"ExitStat":{"type":"object","properties":{"kind":{"type":"string"},"count":{"type":"integer","format":"int32"},"pnlKrw":{"type":"number"},"avgReturnPercent":{"type":"number"}}},"RulePerformance":{"type":"object","properties":{"source":{"type":"string"},"sourceId":{"type":"integer","format":"int64"},"market":{"type":"string"},"mode":{"type":"string"},"orders":{"type":"integer","format":"int32"},"filled":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"skipped":{"type":"integer","format":"int32"},"buyKrw":{"type":"number"},"sellKrw":{"type":"number"},"feeKrw":{"type":"number"},"realizedPnl":{"type":"number"},"sells":{"type":"integer","format":"int32"},"wins":{"type":"integer","format":"int32"},"unknownCostSells":{"type":"integer","format":"int32"},"openVolume":{"type":"number"},"openCost":{"type":"number"},"openValue":{"type":"number"},"unrealizedPnl":{"type":"number"},"totalPnl":{"type":"number"},"returnPercent":{"type":"number"},"firstAt":{"type":"string","format":"date-time"},"lastAt":{"type":"string","format":"date-time"},"exits":{"type":"array","items":{"$ref":"#/components/schemas/ExitStat"}}}},"Timeline":{"type":"object","properties":{"source":{"type":"string"},"sourceId":{"type":"integer","format":"int64"},"market":{"type":"string"},"mode":{"type":"string"},"points":{"type":"array","items":{"$ref":"#/components/schemas/TimelinePoint"}}}},"TimelinePoint":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"side":{"type":"string"},"price":{"type":"number"},"realizedPnl":{"type":"number"},"unrealizedPnl":{"type":"number"},"totalPnl":{"type":"number"}}},"PaperHolding":{"type":"object","properties":{"currency":{"type":"string"},"balance":{"type":"number"},"avgBuyPrice":{"type":"number"},"price":{"type":"number"},"valueKrw":{"type":"number"},"pnlPercent":{"type":"number"}}},"PaperView":{"type":"object","properties":{"initialKrw":{"type":"number"},"resetAt":{"type":"string","format":"date-time"},"holdings":{"type":"array","items":{"$ref":"#/components/schemas/PaperHolding"}},"totalKrw":{"type":"number"},"pnlKrw":{"type":"number"},"pnlPercent":{"type":"number"}}},"OrderView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"sourceId":{"type":"integer","format":"int64"},"mode":{"type":"string"},"market":{"type":"string"},"side":{"type":"string"},"ordType":{"type":"string"},"price":{"type":"number"},"volume":{"type":"number"},"sellPercent":{"type":"number"},"status":{"type":"string"},"executedVolume":{"type":"number"},"executedFunds":{"type":"number"},"paidFee":{"type":"number"},"error":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"note":{"type":"string"}}},"OrderSignal":{"type":"object","properties":{"signalId":{"type":"integer","format":"int64"}}},"OrderSummary":{"type":"object","properties":{"orders":{"type":"integer","format":"int32"},"filled":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"skipped":{"type":"integer","format":"int32"},"buyKrw":{"type":"number"},"sellKrw":{"type":"number"},"feeKrw":{"type":"number"},"netKrw":{"type":"number"},"gridRealizedProfit":{"type":"number"},"markets":{"type":"array","items":{"type":"string"}}}},"ProtectionView":{"type":"object","properties":{"days":{"type":"integer","format":"int32"},"ratio":{"type":"number"},"rules":{"type":"array","items":{"$ref":"#/components/schemas/RuleProtection"}}}},"RuleProtection":{"type":"object","properties":{"source":{"type":"string"},"sourceId":{"type":"integer","format":"int64"},"firstLiveAt":{"type":"string","format":"date-time"},"until":{"type":"string","format":"date-time"},"daysLeft":{"type":"integer","format":"int64"}}},"GridView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"lowerPrice":{"type":"number"},"upperPrice":{"type":"number"},"gridCount":{"type":"integer","format":"int32"},"orderKrw":{"type":"number"},"mode":{"type":"string"},"status":{"type":"string"},"realizedProfit":{"type":"number"},"roundTrips":{"type":"integer","format":"int32"},"lastError":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"stoppedAt":{"type":"string","format":"date-time"},"idle":{"type":"integer","format":"int32"},"buying":{"type":"integer","format":"int32"},"selling":{"type":"integer","format":"int32"},"holdingVolume":{"type":"number"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/SlotView"}},"rangeState":{"type":"string"},"liquidating":{"type":"boolean"}}},"SlotView":{"type":"object","properties":{"idx":{"type":"integer","format":"int32"},"buyPrice":{"type":"number"},"sellPrice":{"type":"number"},"state":{"type":"string"},"orderId":{"type":"integer","format":"int64"},"volume":{"type":"number"}}},"AiRuleSettings":{"type":"object","properties":{"buyKrw":{"type":"number"},"sellPercent":{"type":"number"},"minConfidence":{"type":"integer","format":"int32"},"sellMinConfidence":{"type":"integer","format":"int32"},"onChangeOnly":{"type":"boolean"},"mode":{"type":"string","enum":["PAPER","LIVE"]},"stopLossPct":{"type":"number"},"sellBasis":{"type":"string","enum":["RULE","ACCOUNT"]},"takeProfitPct":{"type":"number"},"trailingPct":{"type":"number"},"takeProfitDefer":{"type":"boolean"},"maxPositionKrw":{"type":"number"},"stopCooldownHours":{"type":"integer","format":"int32"},"buyKrwMax":{"type":"number"},"sellConfirm":{"type":"integer","format":"int32"},"minHoldMinutes":{"type":"integer","format":"int32"},"trailingActivatePct":{"type":"number"}}},"AiSignalRule":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"string"},"market":{"type":"string"},"settings":{"$ref":"#/components/schemas/AiRuleSettings"},"enabled":{"type":"boolean"},"lastEffective":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"pausedReason":{"type":"string"},"entryVolume":{"type":"number"},"entryCost":{"type":"number"},"peakPrice":{"type":"number"},"exitVolume":{"type":"number"},"exitRetryAt":{"type":"string","format":"date-time"},"lastStopAt":{"type":"string","format":"date-time"},"sellStreak":{"type":"integer","format":"int32"},"entryAt":{"type":"string","format":"date-time"}}},"AlertOrderRule":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"string"},"alertId":{"type":"integer","format":"int64"},"side":{"type":"string","enum":["BID","ASK"]},"krwAmount":{"type":"number"},"sellPercent":{"type":"number"},"mode":{"type":"string","enum":["PAPER","LIVE"]},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"aiFilter":{"type":"boolean"},"pausedReason":{"type":"string"}}},"DcaRule":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"string"},"market":{"type":"string"},"krwAmount":{"type":"number"},"period":{"type":"string","enum":["DAILY","WEEKLY"]},"dayOfWeek":{"type":"integer","format":"int32"},"hour":{"type":"integer","format":"int32"},"mode":{"type":"string","enum":["PAPER","LIVE"]},"enabled":{"type":"boolean"},"nextRunAt":{"type":"string","format":"date-time"},"lastRunAt":{"type":"string","format":"date-time"},"pausedReason":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"ExportView":{"type":"object","properties":{"exportedAt":{"type":"string","format":"date-time"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/OrderView"}},"alertRules":{"type":"array","items":{"$ref":"#/components/schemas/AlertOrderRule"}},"tpslRules":{"type":"array","items":{"$ref":"#/components/schemas/TpSlRule"}},"aiRules":{"type":"array","items":{"$ref":"#/components/schemas/AiSignalRule"}},"dcaRules":{"type":"array","items":{"$ref":"#/components/schemas/DcaRule"}},"grids":{"type":"array","items":{"$ref":"#/components/schemas/GridBot"}},"paperHoldings":{"type":"array","items":{"$ref":"#/components/schemas/Holding"}},"settings":{"$ref":"#/components/schemas/Settings"}}},"GridBot":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"string"},"market":{"type":"string"},"lowerPrice":{"type":"number"},"upperPrice":{"type":"number"},"gridCount":{"type":"integer","format":"int32"},"orderKrw":{"type":"number"},"mode":{"type":"string","enum":["PAPER","LIVE"]},"status":{"type":"string","enum":["RUNNING","STOPPED"]},"realizedProfit":{"type":"number"},"roundTrips":{"type":"integer","format":"int32"},"lastError":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"stoppedAt":{"type":"string","format":"date-time"},"rangeState":{"type":"string","enum":["BELOW","ABOVE"]},"liquidate":{"type":"boolean"}}},"Holding":{"type":"object","properties":{"currency":{"type":"string"},"balance":{"type":"number"},"avgBuyPrice":{"type":"number"}}},"TpSlRule":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"string"},"market":{"type":"string"},"basePrice":{"type":"number"},"takeProfitPct":{"type":"number"},"stopLossPct":{"type":"number"},"sellPercent":{"type":"number"},"mode":{"type":"string","enum":["PAPER","LIVE"]},"status":{"type":"string","enum":["ACTIVE","TRIGGERED"]},"triggerPrice":{"type":"number"},"triggeredAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"aiFilter":{"type":"boolean"},"trailingPct":{"type":"number"},"peakPrice":{"type":"number"}}},"Point":{"type":"object","properties":{"day":{"type":"string","format":"date"},"mode":{"type":"string"},"valueKrw":{"type":"number"}}},"DipView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"basePrice":{"type":"number"},"stepPct":{"type":"number"},"krwAmount":{"type":"number"},"maxBuys":{"type":"integer","format":"int32"},"buysDone":{"type":"integer","format":"int32"},"nextBuyPrice":{"type":"number"},"stopLossPct":{"type":"number"},"stopLossPrice":{"type":"number"},"mode":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string"},"pausedReason":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"DcaView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"krwAmount":{"type":"number"},"period":{"type":"string"},"dayOfWeek":{"type":"integer","format":"int32"},"hour":{"type":"integer","format":"int32"},"mode":{"type":"string"},"enabled":{"type":"boolean"},"nextRunAt":{"type":"string","format":"date-time"},"lastRunAt":{"type":"string","format":"date-time"},"pausedReason":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"AutoPauseView":{"type":"object","properties":{"paper":{"type":"integer","format":"int32"},"live":{"type":"integer","format":"int32"},"noticeAfter":{"type":"integer","format":"int32"},"choices":{"type":"array","items":{"type":"integer","format":"int32"}}}},"AlertRuleView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"alertId":{"type":"integer","format":"int64"},"side":{"type":"string"},"krwAmount":{"type":"number"},"sellPercent":{"type":"number"},"mode":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"alert":{"$ref":"#/components/schemas/AlertSummary"},"aiFilter":{"type":"boolean"},"pausedReason":{"type":"string"}}},"AlertSummary":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"conditionType":{"type":"string"},"targetPrice":{"type":"number"},"targetRate":{"type":"number"},"windowMinutes":{"type":"integer","format":"int32"},"oneShot":{"type":"boolean"},"enabled":{"type":"boolean"}}},"AiRuleView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"buyKrw":{"type":"number"},"sellPercent":{"type":"number"},"minConfidence":{"type":"integer","format":"int32"},"sellMinConfidence":{"type":"integer","format":"int32"},"onChangeOnly":{"type":"boolean"},"mode":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"latestSignal":{"$ref":"#/components/schemas/LatestSignal"},"pausedReason":{"type":"string"},"stopLossPct":{"type":"number"},"sellBasis":{"type":"string"},"takeProfitPct":{"type":"number"},"trailingPct":{"type":"number"},"takeProfitDefer":{"type":"boolean"},"maxPositionKrw":{"type":"number"},"entryVolume":{"type":"number"},"entryCost":{"type":"number"},"entryPrice":{"type":"number"},"stopLossPrice":{"type":"number"},"takeProfitPrice":{"type":"number"},"trailingStopPrice":{"type":"number"},"exiting":{"type":"boolean"},"exitRetryAt":{"type":"string","format":"date-time"},"stopCooldownHours":{"type":"integer","format":"int32"},"cooldownUntil":{"type":"string","format":"date-time"},"buyHitRate":{"type":"number","format":"double"},"buySamples":{"type":"integer","format":"int32"},"weakReason":{"type":"string"},"buyKrwMax":{"type":"number"},"sellConfirm":{"type":"integer","format":"int32"},"minHoldMinutes":{"type":"integer","format":"int32"},"trailingActivatePct":{"type":"number"}}},"LatestSignal":{"type":"object","properties":{"signal":{"type":"string"},"confidence":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}},"Status":{"type":"object","properties":{"enabled":{"type":"boolean"},"botUsername":{"type":"string"},"linked":{"type":"boolean"},"linkedAt":{"type":"string","format":"date-time"}}},"Ticker":{"type":"object","properties":{"market":{"type":"string"},"tradePrice":{"type":"number"},"openingPrice":{"type":"number"},"highPrice":{"type":"number"},"lowPrice":{"type":"number"},"prevClosingPrice":{"type":"number"},"signedChangeRate":{"type":"number"},"accTradeVolume24h":{"type":"number"},"accTradePrice24h":{"type":"number"},"tradedAt":{"type":"string","format":"date-time"},"accTradeVolume":{"type":"number"}}},"SseEmitter":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64"}}},"Account":{"type":"object","properties":{"currency":{"type":"string"},"balance":{"type":"number"},"locked":{"type":"number"},"avgBuyPrice":{"type":"number"},"unitCurrency":{"type":"string"}}},"SummaryTimesView":{"type":"object","properties":{"digestTime":{"type":"string"},"liveDailyTime":{"type":"string"},"weeklyDay":{"type":"integer","format":"int32"},"weeklyTime":{"type":"string"},"defaultDigestTime":{"type":"string"},"defaultLiveDailyTime":{"type":"string"},"defaultWeeklyDay":{"type":"integer","format":"int32"},"defaultWeeklyTime":{"type":"string"}}},"ItemView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"title":{"type":"string"},"link":{"type":"string"},"publishedAt":{"type":"string","format":"date-time"},"markets":{"type":"array","items":{"type":"string"}}}},"Page":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemView"}},"nextBefore":{"type":"integer","format":"int64"}}},"MarketCount":{"type":"object","properties":{"market":{"type":"string"},"count":{"type":"integer","format":"int32"}}},"SessionView":{"type":"object","properties":{"id":{"type":"string"},"device":{"type":"string"},"userAgent":{"type":"string"},"ip":{"type":"string"},"startedAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"longLived":{"type":"boolean"},"current":{"type":"boolean"}}},"MeResponse":{"type":"object","properties":{"username":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"email":{"type":"string"},"phone":{"type":"string"}}},"SignalView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"market":{"type":"string"},"signal":{"type":"string"},"confidence":{"type":"integer","format":"int32"},"summary":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"risk":{"type":"string"},"guard":{"type":"string"},"indicators":{"type":"object","additionalProperties":{}},"price":{"type":"number"},"model":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"NewsPerformance":{"type":"object","properties":{"news":{"type":"string"},"direction":{"type":"string"},"count":{"type":"integer","format":"int32"},"hits":{"type":"integer","format":"int32"},"hitRate":{"type":"number","format":"double"},"avgReturnPercent":{"type":"number","format":"double"}}},"PriceAlert":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"string"},"market":{"type":"string"},"condition":{"type":"string","enum":["ABOVE","BELOW","CHANGE_ABOVE","CHANGE_BELOW","RISE_WITHIN","DROP_WITHIN","VOLUME_SPIKE"]},"targetPrice":{"type":"number"},"targetRate":{"type":"number"},"windowMinutes":{"type":"integer","format":"int32"},"cooldownSeconds":{"type":"integer","format":"int32"},"oneShot":{"type":"boolean"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}},"AlertHistoryEntry":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"alertId":{"type":"integer","format":"int64"},"market":{"type":"string"},"condition":{"type":"string","enum":["ABOVE","BELOW","CHANGE_ABOVE","CHANGE_BELOW","RISE_WITHIN","DROP_WITHIN","VOLUME_SPIKE"]},"targetPrice":{"type":"number"},"targetRate":{"type":"number"},"windowMinutes":{"type":"integer","format":"int32"},"tradePrice":{"type":"number"},"changeRate":{"type":"number"},"measuredValue":{"type":"number"},"triggeredAt":{"type":"string","format":"date-time"}}},"ErrorCount":{"type":"object","properties":{"error":{"type":"string"},"count":{"type":"integer","format":"int32"}}},"ExposureUse":{"type":"object","properties":{"mode":{"type":"string"},"usedPercent":{"type":"number"}}},"Member":{"type":"object","properties":{"userId":{"type":"string"},"credential":{"type":"boolean"},"liveRules":{"type":"integer","format":"int32"},"paperRules":{"type":"integer","format":"int32"},"todayOrders":{"type":"integer","format":"int32"},"todayFailed":{"type":"integer","format":"int32"},"todaySkipped":{"type":"integer","format":"int32"},"paused":{"type":"boolean"},"pausedReason":{"type":"string"},"todayLivePnl":{"type":"number"},"dailyLossLimitKrw":{"type":"number"},"lossLimitUsed":{"type":"number","format":"double"},"aiExposure":{"type":"array","items":{"$ref":"#/components/schemas/ExposureUse"}},"weakAiRules":{"type":"integer","format":"int32"},"krwShortage7d":{"type":"integer","format":"int32"},"cooldownAiRules":{"type":"integer","format":"int32"}}},"Overview":{"type":"object","properties":{"halted":{"type":"boolean"},"haltReason":{"type":"string"},"members":{"type":"array","items":{"$ref":"#/components/schemas/Member"}},"topErrors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorCount"}}}},"Retention":{"type":"object","properties":{"tickerSnapshot":{"type":"string"},"tickerCandle1m":{"type":"string"},"aiSignal":{"type":"string"},"alertHistory":{"type":"string"},"logDays":{"type":"string"}}},"StorageView":{"type":"object","properties":{"diskTotalBytes":{"type":"integer","format":"int64"},"diskFreeBytes":{"type":"integer","format":"int64"},"databaseBytes":{"type":"integer","format":"int64"},"tables":{"type":"array","items":{"$ref":"#/components/schemas/TableSize"}},"retention":{"$ref":"#/components/schemas/Retention"}}},"TableSize":{"type":"object","properties":{"name":{"type":"string"},"totalBytes":{"type":"integer","format":"int64"},"rows":{"type":"integer","format":"int64"}}},"NewsView":{"type":"object","properties":{"sources":{"type":"array","items":{"$ref":"#/components/schemas/SourceView"}},"recent":{"type":"array","items":{"$ref":"#/components/schemas/ItemView"}}}},"SourceView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"url":{"type":"string"},"enabled":{"type":"boolean"},"lastFetchedAt":{"type":"string","format":"date-time"},"lastError":{"type":"string"},"failCount":{"type":"integer","format":"int32"},"items24h":{"type":"integer","format":"int32"},"matched24h":{"type":"integer","format":"int32"}}},"ExclusionView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"term":{"type":"string"},"market":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"MarketsResponse":{"type":"object","properties":{"markets":{"type":"array","items":{"type":"string"}}}},"MarketDetail":{"type":"object","properties":{"market":{"type":"string"},"addedBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"inUse":{"type":"boolean"},"unusedSince":{"type":"string","format":"date-time"}}},"UnsubscribeRequest":{"type":"object","properties":{"endpoint":{"type":"string","maxLength":2048,"minLength":0}},"required":["endpoint"]}},"securitySchemes":{"bearer":{"type":"http","description":"POST /api/auth/login 의 accessToken","scheme":"bearer","bearerFormat":"JWT"},"adminBasic":{"type":"http","description":"관리자 (ADMIN_USERNAME / ADMIN_PASSWORD)","scheme":"basic"}}}}