Update news data and technical indicator utility functions.
This commit is contained in:
parent
a90e0434a2
commit
4843bca0d3
|
|
@ -36,6 +36,8 @@ def get_global_news(
|
|||
Returns:
|
||||
str: 一個包含全球新聞數據的格式化字串
|
||||
"""
|
||||
look_back_days = int(look_back_days)
|
||||
limit = int(limit)
|
||||
return route_to_vendor("get_global_news", curr_date, look_back_days, limit)
|
||||
|
||||
@tool
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ def get_indicators(
|
|||
Returns:
|
||||
str: 一個格式化的數據框,包含指定股票代碼和指標的技術指標。
|
||||
"""
|
||||
look_back_days = int(look_back_days)
|
||||
# 規範化指標名稱以匹配供應商的預期格式
|
||||
indicator_lower = indicator.lower().strip()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue