...
This commit is contained in:
@@ -127,7 +127,7 @@ object RagService {
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun processStock(stockName: String,stockCode: String,result : TradingDecisionCallback) {
|
||||
suspend fun processStock(technicalAnalyzer: TechnicalAnalyzer,stockName: String,stockCode: String,result : TradingDecisionCallback) {
|
||||
// 1. 10분간의 데이터 가져오기 (API 호출)
|
||||
coroutineScope {
|
||||
try {
|
||||
@@ -146,7 +146,7 @@ object RagService {
|
||||
tradingDecision.financialData = financialDataDeferred.await()
|
||||
result(tradingDecision, false)
|
||||
|
||||
tradingDecision.techSummary = TechnicalAnalyzer.generateComprehensiveReport()
|
||||
tradingDecision.techSummary = technicalAnalyzer.generateComprehensiveReport()
|
||||
result(tradingDecision, false)
|
||||
|
||||
val question = "${corpInfo?.cName} $stockName[$stockCode]의 향후 실적 전망과 관련된 핵심 뉴스"
|
||||
@@ -333,6 +333,11 @@ class TradingDecision {
|
||||
var newsContext : String? = null
|
||||
var financialData : String? = null
|
||||
|
||||
|
||||
fun shortPossible() =
|
||||
listOf<Double>(ultraShortScore,
|
||||
shortTermScore).average()
|
||||
|
||||
fun profitPossible() =
|
||||
listOf<Double>(ultraShortScore,
|
||||
shortTermScore,
|
||||
|
||||
Reference in New Issue
Block a user