This commit is contained in:
lun_admin 2026-04-06 09:53:46 +09:00
parent ad91e10ad9
commit 2f181cea0d
2 changed files with 4 additions and 4 deletions

View File

@ -323,7 +323,7 @@ object KisTradeService {
price: String, price: String,
isBuy: Boolean, isBuy: Boolean,
orderDivision: String = "", orderDivision: String = "",
marketCode : String = "" marketCode : String = "KRX"
): Result<String> { ): Result<String> {
val config = KisSession.config val config = KisSession.config
val isDomestic = stockCode.length == 6 && stockCode.all { it.isDigit() } val isDomestic = stockCode.length == 6 && stockCode.all { it.isDigit() }
@ -357,7 +357,7 @@ object KisTradeService {
header("Content-Type", "application/json") header("Content-Type", "application/json")
setBody(mapOf( setBody(mapOf(
// "EXCG_ID_DVSN_CD" to marketCode, "EXCG_ID_DVSN_CD" to marketCode,
"CANO" to cano, "CANO" to cano,
"ACNT_PRDT_CD" to acntPrdtCd, "ACNT_PRDT_CD" to acntPrdtCd,
"PDNO" to stockCode, "PDNO" to stockCode,

View File

@ -427,7 +427,7 @@ object AutoTradingManager {
suspend fun resumePendingSellOrders(tradeService: KisTradeService,balance : UnifiedBalance) { suspend fun resumePendingSellOrders(tradeService: KisTradeService,balance : UnifiedBalance) {
if (isRunning()) return // if (isRunning()) return
val now = LocalTime.now() val now = LocalTime.now()
val currentMinute = now.minute val currentMinute = now.minute
// if (now.isBefore(H16) && now.isAfter(H08M35)) { // if (now.isBefore(H16) && now.isAfter(H08M35)) {
@ -723,7 +723,7 @@ object AutoTradingManager {
val now = LocalTime.now() val now = LocalTime.now()
val currentMinute = now.minute val currentMinute = now.minute
println("매도 스케줄 체크") println("매도 스케줄 체크")
if (now.hour == 9 && (currentMinute == 1 || currentMinute == 15 || currentMinute == 45)) { if (now.hour == 9 && (currentMinute % 10 == 1 || currentMinute % 10 == 7)) {
if (lastForceCheckMinute != currentMinute) { if (lastForceCheckMinute != currentMinute) {
TradingLogStore.addAnalyzer(" - ", " - ", "⏰ [강제 스케줄 실행] 오전 9시 ${currentMinute}분 - 보유주식 매도 체크를 시작합니다.", true) TradingLogStore.addAnalyzer(" - ", " - ", "⏰ [강제 스케줄 실행] 오전 9시 ${currentMinute}분 - 보유주식 매도 체크를 시작합니다.", true)
println("⏰ [강제 스케줄 실행] 오전 9시 ${currentMinute}분 - 보유주식 매도 체크를 시작합니다.") println("⏰ [강제 스케줄 실행] 오전 9시 ${currentMinute}분 - 보유주식 매도 체크를 시작합니다.")