This commit is contained in:
2026-08-10 10:15:13 +09:00
parent 3fdb298caa
commit 30ab7bbecf
@@ -272,7 +272,7 @@ object AutoTradingManager {
MarketUtil.roundToTickSize(basePrice * (1 + effectiveProfitRate / 100.0))
val calculatedStop = MarketUtil.roundToTickSize(basePrice * (1 + sRate / 100.0))
val inputQty = orderQty.replace(",", "").toIntOrNull() ?: 0
if (!hasCode) {
DatabaseFactory.saveAutoTrade(
AutoTradeItem(
orderNo = realOrderNo,
@@ -287,7 +287,6 @@ object AutoTradingManager {
isDomestic = true
)
)
TradingReportManager.recordTradeDecision(
orderNo = realOrderNo,
stockCode = stockCode,
@@ -297,7 +296,6 @@ object AutoTradingManager {
reason = decision.reason ?: "", // AI 이유
decision = decision // AI 객체 통째로 전달
)
if (!hasCode) {
syncAndExecute(realOrderNo)
}
// 💡 [개선 3] 감시 설정 로그에도 등급 정보 노출
@@ -994,6 +992,7 @@ object AutoTradingManager {
currentBalance?.getHoldings()?.map {
if(
it.quantity.toInt() > KisSession.tradeConfig.lowerAverageTargetCount &&
it.profitRate.toDouble() < 0.0 &&
it.profitRate.toDouble() < (abs(KisSession.tradeConfig.lowerAverageMaxRate) * -1) &&
it.profitRate.toDouble() > (abs(KisSession.tradeConfig.lowerAverageMinRate) * -1))
{