Update news data and technical indicator utility functions.

This commit is contained in:
MarkLo127 2026-03-09 15:14:48 +08:00
parent a90e0434a2
commit 4843bca0d3
2 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,8 @@ def get_global_news(
Returns: Returns:
str: 一個包含全球新聞數據的格式化字串 str: 一個包含全球新聞數據的格式化字串
""" """
look_back_days = int(look_back_days)
limit = int(limit)
return route_to_vendor("get_global_news", curr_date, look_back_days, limit) return route_to_vendor("get_global_news", curr_date, look_back_days, limit)
@tool @tool

View File

@ -35,6 +35,7 @@ def get_indicators(
Returns: Returns:
str: 一個格式化的數據框包含指定股票代碼和指標的技術指標 str: 一個格式化的數據框包含指定股票代碼和指標的技術指標
""" """
look_back_days = int(look_back_days)
# 規範化指標名稱以匹配供應商的預期格式 # 規範化指標名稱以匹配供應商的預期格式
indicator_lower = indicator.lower().strip() indicator_lower = indicator.lower().strip()