This commit is contained in:
2026-03-19 17:00:53 +09:00
parent f830163940
commit 7ce24cc631
3 changed files with 29 additions and 4 deletions
+5
View File
@@ -139,6 +139,10 @@ fun main() = application {
} else {
when (currentScreen) {
AppScreen.Settings -> {
AutoTradingManager.onMarketClosed = {
println("프로그램 초기화 실행됨")
currentScreen = AppScreen.Settings
}
SettingsScreen(
onAuthSuccess = {
@@ -146,6 +150,7 @@ fun main() = application {
val config = KisSession.config
AutoTradingManager.isSystemReadyToday = true
AutoTradingManager.isSystemCleanedUpToday = false
CoroutineScope(Dispatchers.Default).launch {
AutoTradingManager.startAutoDiscoveryLoop()
KisWebSocketManager.onExecutionReceived = AutoTradingManager.onExecutionReceived