This commit is contained in:
lunaticbum 2026-03-04 16:39:21 +09:00
parent 80a9aa574d
commit eb2dc0efd0
3 changed files with 10 additions and 3 deletions

View File

@ -63,6 +63,9 @@ dependencies {
compose.desktop { compose.desktop {
application { application {
mainClass = "MainKt" mainClass = "MainKt"
buildTypes.release.proguard {
isEnabled.set(false) // 임시로 false 설정
}
nativeDistributions { nativeDistributions {
targetFormats(TargetFormat.Dmg) targetFormats(TargetFormat.Dmg)
packageName = "AutoTradeAI" packageName = "AutoTradeAI"

View File

@ -362,8 +362,8 @@ object FinancialAnalyzer {
val isDebtSafe = fs.debtRatio < 200.0 // 부채비율 200% 미만 val isDebtSafe = fs.debtRatio < 200.0 // 부채비율 200% 미만
val isLiquiditySafe = fs.quickRatio > 80.0 // 당좌비율 80% 이상 val isLiquiditySafe = fs.quickRatio > 80.0 // 당좌비율 80% 이상
val isNotDeficit = fs.isNetIncomePositive // 당기순이익은 일단 흑자여야 함 val isNotDeficit = fs.isNetIncomePositive // 당기순이익은 일단 흑자여야 함
//&& isNotDeficit
return isDebtSafe && isLiquiditySafe return isDebtSafe && isLiquiditySafe && isNotDeficit
} }
/** /**

View File

@ -209,6 +209,7 @@ fun IntegratedOrderSection(
println("basePrice : $basePrice, oneTickLowerPrice : $oneTickLowerPrice, finalPrice : $finalPrice") println("basePrice : $basePrice, oneTickLowerPrice : $oneTickLowerPrice, finalPrice : $finalPrice")
tradeService.postOrder(stockCode, orderQty, finalPrice.toLong().toString(), isBuy = true) tradeService.postOrder(stockCode, orderQty, finalPrice.toLong().toString(), isBuy = true)
.onSuccess { realOrderNo -> // KIS 서버에서 생성된 실제 주문번호 .onSuccess { realOrderNo -> // KIS 서버에서 생성된 실제 주문번호
println("주문 성공: $realOrderNo ${stockCode} $orderQty $finalPrice")
onOrderResult("주문 성공: $realOrderNo", true) onOrderResult("주문 성공: $realOrderNo", true)
if (willEnableAutoSell) { if (willEnableAutoSell) {
// 1. 기본 설정값 파싱 // 1. 기본 설정값 파싱
@ -246,7 +247,10 @@ fun IntegratedOrderSection(
onOrderResult("매수 및 감시 설정 완료 (목표 수익률: ${String.format("%.4f", effectiveProfitRate)}%): $realOrderNo", true) onOrderResult("매수 및 감시 설정 완료 (목표 수익률: ${String.format("%.4f", effectiveProfitRate)}%): $realOrderNo", true)
} }
} }
.onFailure { onOrderResult(it.message ?: "매수 실패", false) } .onFailure {
println("매수 실패: ${it.message} ${stockCode} $orderQty $finalPrice")
onOrderResult(it.message ?: "매수 실패", false)
}
} }
} }
LaunchedEffect(completeTradingDecision) { LaunchedEffect(completeTradingDecision) {