..
This commit is contained in:
parent
c505b79953
commit
0fe8d5ba45
@ -342,6 +342,7 @@ object KisTradeService {
|
|||||||
else -> if (isBuy) "TTTS3002U" else "TTTS3001U"
|
else -> if (isBuy) "TTTS3002U" else "TTTS3001U"
|
||||||
}
|
}
|
||||||
val finalOrderDivision = when {
|
val finalOrderDivision = when {
|
||||||
|
orderDivision.isNotEmpty() -> orderDivision
|
||||||
marketCode.equals("SOR") || price == "0" || price.isEmpty() -> "01" // 시장가
|
marketCode.equals("SOR") || price == "0" || price.isEmpty() -> "01" // 시장가
|
||||||
else -> "00" // 지정가
|
else -> "00" // 지정가
|
||||||
}
|
}
|
||||||
|
|||||||
@ -378,14 +378,14 @@ object AutoTradingManager {
|
|||||||
).onSuccess { newOrderNo ->
|
).onSuccess { newOrderNo ->
|
||||||
println("✅ [재주문 완료] ${holding.name}: $newOrderNo")
|
println("✅ [재주문 완료] ${holding.name}: $newOrderNo")
|
||||||
TradingLogStore.addSellLog(
|
TradingLogStore.addSellLog(
|
||||||
holding.code,
|
"${holding.name}[${holding.code}]",
|
||||||
targetPrice.toString(),
|
targetPrice.toString(),
|
||||||
"SELL",
|
"SELL",
|
||||||
"🎊 ${if(marketCode.equals("Y"))"시간외 단일가" else "대체거래소"} 주식 재고털이 주문 완료"
|
"🎊 ${if(marketCode.equals("Y"))"시간외 단일가" else "대체거래소"} 주식 재고털이 주문 완료"
|
||||||
)
|
)
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
TradingLogStore.addSellLog(
|
TradingLogStore.addSellLog(
|
||||||
holding.code,
|
"${holding.name}[${holding.code}]",
|
||||||
targetPrice.toString(),
|
targetPrice.toString(),
|
||||||
"SELL",
|
"SELL",
|
||||||
"🎊 ${if(marketCode.equals("Y"))"시간외 단일가" else "대체거래소"} 주식 재고털이 주문 실패[${it.message}] "
|
"🎊 ${if(marketCode.equals("Y"))"시간외 단일가" else "대체거래소"} 주식 재고털이 주문 실패[${it.message}] "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user