...
This commit is contained in:
parent
ad91e10ad9
commit
2f181cea0d
@ -323,7 +323,7 @@ object KisTradeService {
|
||||
price: String,
|
||||
isBuy: Boolean,
|
||||
orderDivision: String = "",
|
||||
marketCode : String = ""
|
||||
marketCode : String = "KRX"
|
||||
): Result<String> {
|
||||
val config = KisSession.config
|
||||
val isDomestic = stockCode.length == 6 && stockCode.all { it.isDigit() }
|
||||
@ -357,7 +357,7 @@ object KisTradeService {
|
||||
header("Content-Type", "application/json")
|
||||
|
||||
setBody(mapOf(
|
||||
// "EXCG_ID_DVSN_CD" to marketCode,
|
||||
"EXCG_ID_DVSN_CD" to marketCode,
|
||||
"CANO" to cano,
|
||||
"ACNT_PRDT_CD" to acntPrdtCd,
|
||||
"PDNO" to stockCode,
|
||||
|
||||
@ -427,7 +427,7 @@ object AutoTradingManager {
|
||||
|
||||
|
||||
suspend fun resumePendingSellOrders(tradeService: KisTradeService,balance : UnifiedBalance) {
|
||||
if (isRunning()) return
|
||||
// if (isRunning()) return
|
||||
val now = LocalTime.now()
|
||||
val currentMinute = now.minute
|
||||
// if (now.isBefore(H16) && now.isAfter(H08M35)) {
|
||||
@ -723,7 +723,7 @@ object AutoTradingManager {
|
||||
val now = LocalTime.now()
|
||||
val currentMinute = now.minute
|
||||
println("매도 스케줄 체크")
|
||||
if (now.hour == 9 && (currentMinute == 1 || currentMinute == 15 || currentMinute == 45)) {
|
||||
if (now.hour == 9 && (currentMinute % 10 == 1 || currentMinute % 10 == 7)) {
|
||||
if (lastForceCheckMinute != currentMinute) {
|
||||
TradingLogStore.addAnalyzer(" - ", " - ", "⏰ [강제 스케줄 실행] 오전 9시 ${currentMinute}분 - 보유주식 매도 체크를 시작합니다.", true)
|
||||
println("⏰ [강제 스케줄 실행] 오전 9시 ${currentMinute}분 - 보유주식 매도 체크를 시작합니다.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user