Files
Source/project/STOCK_APP/backend/graph/nodes.py
T
cooney 3be7886bfe 랭그래프 활용한 주식 정보 도출 프로젝트
- yahooquery, ta 라이브러리 활용
2026-06-18 17:48:31 +09:00

22 lines
643 B
Python

from backend.services.news_service import get_news
from backend.services.financial_service import get_financial_info
from backend.services.technical_service import get_technical_info
async def news_node(state):
news_list = await get_news(state["company_name"])
return {"news": news_list}
async def financial_node(state):
financials = await get_financial_info(state["ticker"])
return {"financials": financials}
async def technical_node(state):
technicals = await get_technical_info(state["ticker"])
return {"technicals": technicals}
async def competitor_node(state):
pass
async def report_node(state):
pass