This commit is contained in:
2026-03-13 11:06:20 +09:00
parent 6d340b7dc0
commit 8013e80a34
6 changed files with 66 additions and 17 deletions
+17 -13
View File
@@ -77,19 +77,19 @@ fun main() = application {
LaunchedEffect(Unit) {
// NewsService나 KisTradeService에서 사용하는 client를 전달
DartCodeManager.updateCorpCodes(HttpClient(CIO) {
install(ContentNegotiation) {
json(Json {
ignoreUnknownKeys = true
encodeDefaults = true // 기본값이 포함된 요청 바디를 정확히 전송하기 위해 필요
})
}
// [수정] 모든 로그(Headers + Body)를 찍도록 설정
install(Logging) {
logger = Logger.DEFAULT
level = LogLevel.BODY
}
})
// DartCodeManager.updateCorpCodes(HttpClient(CIO) {
// install(ContentNegotiation) {
// json(Json {
// ignoreUnknownKeys = true
// encodeDefaults = true // 기본값이 포함된 요청 바디를 정확히 전송하기 위해 필요
// })
// }
// // [수정] 모든 로그(Headers + Body)를 찍도록 설정
// install(Logging) {
// logger = Logger.DEFAULT
// level = LogLevel.BODY
// }
// })
}
// 앱 실행 시 필요한 바이너리 경로 (실행 파일 위치)
val binPath = getLlamaBinPath()
@@ -113,6 +113,9 @@ fun main() = application {
vtsAppKey = it[ConfigTable.vtsAppKey],
vtsSecretKey = it[ConfigTable.vtsSecretKey],
vtsAccountNo = it[ConfigTable.vtsAccountNo],
nAppKey = it[ConfigTable.nAppKey],
nSecretKey = it[ConfigTable.nSecretKey],
dAppKey = it[ConfigTable.dAppKey],
isSimulation = it[ConfigTable.isSimulation],
htsId = it[ConfigTable.htsId],
modelPath = it[ConfigTable.modelPath],
@@ -150,6 +153,7 @@ fun main() = application {
AppScreen.Settings -> {
SettingsScreen(
onAuthSuccess = {
// 2. 설정 및 인증 완료 시점의 처리
val config = KisSession.config
AutoTradingManager.isSystemReadyToday = true