revise 'company' -> 'coin'

This commit is contained in:
rdyzakya 2025-12-31 12:14:57 +08:00
parent b6aa100bac
commit 3262b08033
4 changed files with 10 additions and 10 deletions

View File

@ -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," " 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." " 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}" " 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"), MessagesPlaceholder(variable_name="messages"),
] ]

View File

@ -33,7 +33,7 @@ Resources available:
Market research report: {market_research_report} Market research report: {market_research_report}
Social media sentiment report: {sentiment_report} Social media sentiment report: {sentiment_report}
Latest world affairs news: {news_report} Latest world affairs news: {news_report}
Company fundamentals report: {fundamentals_report} Coin fundamentals report: {fundamentals_report}
Profile analysis report: {profile_report} Profile analysis report: {profile_report}
Conversation history of the debate: {history} Conversation history of the debate: {history}
Last bear argument: {current_response} Last bear argument: {current_response}

View File

@ -4,7 +4,7 @@ from tradingagents.dataflows.interface import route_to_vendor
@tool @tool
def get_indicators( 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"], 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"], 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, 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. Retrieve technical indicators for a given ticker symbol.
Uses the configured technical_indicators vendor. Uses the configured technical_indicators vendor.
Args: 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 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 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 look_back_days (int): How many days to look back, default is 30
@ -24,7 +24,7 @@ def get_indicators(
@tool @tool
def get_indicators_bulk( 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"], 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"], 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, 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. Retrieve multiple technical indicators for a given ticker symbol.
Uses the configured technical_indicators vendor. Uses the configured technical_indicators vendor.
Args: 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 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 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 look_back_days (int): How many days to look back, default is 30

View File

@ -177,14 +177,14 @@ class TradingAgentsGraph:
), ),
} }
def propagate(self, company_name, trade_date): def propagate(self, ticker, trade_date):
"""Run the trading agents graph for a company on a specific date.""" """Run the trading agents graph for a coin pair on a specific date."""
self.ticker = company_name self.ticker = ticker
# Initialize state # Initialize state
init_agent_state = self.propagator.create_initial_state( init_agent_state = self.propagator.create_initial_state(
company_name, trade_date ticker, trade_date
) )
args = self.propagator.get_graph_args() args = self.propagator.get_graph_args()