This commit is contained in:
lunaticbum 2026-04-08 17:25:04 +09:00
parent c505b79953
commit 0fe8d5ba45
2 changed files with 3 additions and 2 deletions

View File

@ -342,6 +342,7 @@ object KisTradeService {
else -> if (isBuy) "TTTS3002U" else "TTTS3001U"
}
val finalOrderDivision = when {
orderDivision.isNotEmpty() -> orderDivision
marketCode.equals("SOR") || price == "0" || price.isEmpty() -> "01" // 시장가
else -> "00" // 지정가
}

View File

@ -378,14 +378,14 @@ object AutoTradingManager {
).onSuccess { newOrderNo ->
println("✅ [재주문 완료] ${holding.name}: $newOrderNo")
TradingLogStore.addSellLog(
holding.code,
"${holding.name}[${holding.code}]",
targetPrice.toString(),
"SELL",
"🎊 ${if(marketCode.equals("Y"))"시간외 단일가" else "대체거래소"} 주식 재고털이 주문 완료"
)
}.onFailure {
TradingLogStore.addSellLog(
holding.code,
"${holding.name}[${holding.code}]",
targetPrice.toString(),
"SELL",
"🎊 ${if(marketCode.equals("Y"))"시간외 단일가" else "대체거래소"} 주식 재고털이 주문 실패[${it.message}] "