...
This commit is contained in:
parent
05a9d01bba
commit
18478e58d4
@ -29,6 +29,8 @@ import kotlinx.serialization.json.jsonPrimitive
|
|||||||
import kotlinx.serialization.json.put
|
import kotlinx.serialization.json.put
|
||||||
import kotlinx.serialization.json.putJsonArray
|
import kotlinx.serialization.json.putJsonArray
|
||||||
import kotlinx.serialization.json.putJsonObject
|
import kotlinx.serialization.json.putJsonObject
|
||||||
|
import model.ConfigIndex
|
||||||
|
import model.KisSession
|
||||||
import okhttp3.MediaType.Companion.toMediaType
|
import okhttp3.MediaType.Companion.toMediaType
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
@ -207,7 +209,8 @@ object RagService {
|
|||||||
val scores = technicalAnalyzer.calculateScores(financialScore)
|
val scores = technicalAnalyzer.calculateScores(financialScore)
|
||||||
val techDuration = System.currentTimeMillis() - techStartTime
|
val techDuration = System.currentTimeMillis() - techStartTime
|
||||||
println("⏱️ [$stockName] 기술적 지표 계산 소요: ${techDuration}ms")
|
println("⏱️ [$stockName] 기술적 지표 계산 소요: ${techDuration}ms")
|
||||||
if (scores.avg() > 50) {
|
val guideLine = KisSession.config.getValues(ConfigIndex.MIN_PURCHASE_SCORE_INDEX)
|
||||||
|
if (scores.avg() > (guideLine.times(0.85))) {
|
||||||
// 2. 뉴스 스크래핑 및 학습 시간 측정
|
// 2. 뉴스 스크래핑 및 학습 시간 측정
|
||||||
val newsIngestStartTime = System.currentTimeMillis()
|
val newsIngestStartTime = System.currentTimeMillis()
|
||||||
corpInfo?.let {
|
corpInfo?.let {
|
||||||
@ -254,11 +257,13 @@ object RagService {
|
|||||||
result(finalDecision, true)
|
result(finalDecision, true)
|
||||||
} else {
|
} else {
|
||||||
println("✋ [$stockName] 기술 점수 미달로 분석 중단")
|
println("✋ [$stockName] 기술 점수 미달로 분석 중단")
|
||||||
|
TradingLogStore.addAnalyzer(stockName, stockCode, "기술 점수 미달로 분석 중단")
|
||||||
tradingDecision.confidence = 1.0
|
tradingDecision.confidence = 1.0
|
||||||
result(tradingDecision, false)
|
result(tradingDecision, false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println("🚨 [$stockName] 재무 안전벨트 미달")
|
println("🚨 [$stockName] 재무 안전벨트 미달")
|
||||||
|
TradingLogStore.addAnalyzer(stockName, stockCode, "재무 안전벨트 미달로 분석 중단")
|
||||||
tradingDecision.confidence = 1.0
|
tradingDecision.confidence = 1.0
|
||||||
result(tradingDecision, false)
|
result(tradingDecision, false)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user