revise 'company' -> 'coin'
This commit is contained in:
parent
b6aa100bac
commit
3262b08033
|
|
@ -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"),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue