랭그래프 활용한 주식 정보 도출 프로젝트
- yahooquery, ta 라이브러리 활용
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user