From 3262b08033c0db83df53c1cd16771cb1ea090f6e Mon Sep 17 00:00:00 2001 From: rdyzakya Date: Wed, 31 Dec 2025 12:14:57 +0800 Subject: [PATCH] revise 'company' -> 'coin' --- tradingagents/agents/analysts/social_media_analyst.py | 2 +- tradingagents/agents/researchers/bull_researcher.py | 2 +- tradingagents/agents/utils/technical_indicators_tools.py | 8 ++++---- tradingagents/graph/trading_graph.py | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tradingagents/agents/analysts/social_media_analyst.py b/tradingagents/agents/analysts/social_media_analyst.py index 269c6c10..dc18e93f 100644 --- a/tradingagents/agents/analysts/social_media_analyst.py +++ b/tradingagents/agents/analysts/social_media_analyst.py @@ -30,7 +30,7 @@ def create_social_media_analyst(llm): " If you or any other assistant has the FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL** or deliverable," " prefix your response with FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL** so the team knows to stop." " You have access to the following tools: {tool_names}.\n{system_message}" - "For your reference, the current date is {current_date}. The current company we want to analyze is {ticker}", + "For your reference, the current date is {current_date}. The current coin we want to analyze is {ticker}", ), MessagesPlaceholder(variable_name="messages"), ] diff --git a/tradingagents/agents/researchers/bull_researcher.py b/tradingagents/agents/researchers/bull_researcher.py index 88101886..1a78a087 100644 --- a/tradingagents/agents/researchers/bull_researcher.py +++ b/tradingagents/agents/researchers/bull_researcher.py @@ -33,7 +33,7 @@ Resources available: Market research report: {market_research_report} Social media sentiment report: {sentiment_report} Latest world affairs news: {news_report} -Company fundamentals report: {fundamentals_report} +Coin fundamentals report: {fundamentals_report} Profile analysis report: {profile_report} Conversation history of the debate: {history} Last bear argument: {current_response} diff --git a/tradingagents/agents/utils/technical_indicators_tools.py b/tradingagents/agents/utils/technical_indicators_tools.py index 2e57b7ee..9c0406ef 100644 --- a/tradingagents/agents/utils/technical_indicators_tools.py +++ b/tradingagents/agents/utils/technical_indicators_tools.py @@ -4,7 +4,7 @@ from tradingagents.dataflows.interface import route_to_vendor @tool def get_indicators( - symbol: Annotated[str, "ticker symbol of the company"], + symbol: Annotated[str, "ticker symbol of the coin"], indicator: Annotated[str, "technical indicator to get the analysis and report of"], curr_date: Annotated[str, "The current trading date you are trading on, YYYY-mm-dd"], look_back_days: Annotated[int, "how many days to look back"] = 30, @@ -13,7 +13,7 @@ def get_indicators( Retrieve technical indicators for a given ticker symbol. Uses the configured technical_indicators vendor. Args: - symbol (str): Ticker symbol of the company, e.g. AAPL, TSM + symbol (str): Ticker symbol of the coin pair, e.g. BTC/USDT indicator (str): Technical indicator to get the analysis and report of curr_date (str): The current trading date you are trading on, YYYY-mm-dd look_back_days (int): How many days to look back, default is 30 @@ -24,7 +24,7 @@ def get_indicators( @tool def get_indicators_bulk( - symbol: Annotated[str, "ticker symbol of the company"], + symbol: Annotated[str, "ticker symbol of the coin"], indicators: Annotated[List[str], "list of technical indicators to get the analysis and report of"], curr_date: Annotated[str, "The current trading date you are trading on, YYYY-mm-dd"], look_back_days: Annotated[int, "how many days to look back"] = 30, @@ -33,7 +33,7 @@ def get_indicators_bulk( Retrieve multiple technical indicators for a given ticker symbol. Uses the configured technical_indicators vendor. Args: - symbol (str): Ticker symbol of the company, e.g. AAPL, TSM + symbol (str): Ticker symbol of the coin, e.g. BTC/USDT indicators (List[str]): List of technical indicators to get the analysis and report of curr_date (str): The current trading date you are trading on, YYYY-mm-dd look_back_days (int): How many days to look back, default is 30 diff --git a/tradingagents/graph/trading_graph.py b/tradingagents/graph/trading_graph.py index 3a8ec920..a738090a 100644 --- a/tradingagents/graph/trading_graph.py +++ b/tradingagents/graph/trading_graph.py @@ -177,14 +177,14 @@ class TradingAgentsGraph: ), } - def propagate(self, company_name, trade_date): - """Run the trading agents graph for a company on a specific date.""" + def propagate(self, ticker, trade_date): + """Run the trading agents graph for a coin pair on a specific date.""" - self.ticker = company_name + self.ticker = ticker # Initialize state init_agent_state = self.propagator.create_initial_state( - company_name, trade_date + ticker, trade_date ) args = self.propagator.get_graph_args()