...
This commit is contained in:
@@ -15,16 +15,23 @@ import io.ktor.client.plugins.logging.LogLevel
|
||||
import io.ktor.client.plugins.logging.Logger
|
||||
import io.ktor.client.plugins.logging.Logging
|
||||
import io.ktor.serialization.kotlinx.json.json
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.serialization.json.Json
|
||||
import org.jetbrains.exposed.sql.*
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
import model.AppConfig
|
||||
import model.KisSession
|
||||
import network.DartCodeManager
|
||||
import network.KisTradeService
|
||||
import service.LlamaServerManager
|
||||
import network.NewsService
|
||||
import org.jetbrains.exposed.sql.selectAll
|
||||
import service.AutoTradingManager
|
||||
import service.SystemSleepPreventer
|
||||
import service.TradingDecisionCallback
|
||||
import ui.DashboardScreen
|
||||
import ui.SettingsScreen
|
||||
|
||||
@@ -33,6 +40,7 @@ enum class AppScreen { Settings, Dashboard }
|
||||
|
||||
fun main() = application {
|
||||
SystemSleepPreventer.start()
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
// NewsService나 KisTradeService에서 사용하는 client를 전달
|
||||
DartCodeManager.updateCorpCodes(HttpClient(CIO) {
|
||||
|
||||
Reference in New Issue
Block a user