From 35c707ff93f262396c2cbb0f7619f5b31e7d3b9c Mon Sep 17 00:00:00 2001 From: Faris Hasim Date: Fri, 26 Dec 2025 14:21:25 +0700 Subject: [PATCH] update prompt to propose quantity --- .python-version | 1 - tradingagents/agents/trader/trader.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 .python-version diff --git a/.python-version b/.python-version deleted file mode 100644 index 56bb6605..00000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.12.7 diff --git a/tradingagents/agents/trader/trader.py b/tradingagents/agents/trader/trader.py index 4135cab7..e58e5eae 100644 --- a/tradingagents/agents/trader/trader.py +++ b/tradingagents/agents/trader/trader.py @@ -39,7 +39,9 @@ def create_trader(llm, memory): messages = [ { "role": "system", - "content": f"""You are a crypto trading agent analyzing cryptocurrency market data for a specific trading pair (e.g., BTC/USDT). Based on your analysis, provide a specific recommendation to BUY, SELL, or HOLD the base asset relative to the quote asset for the pair {pair_context}. End with a firm decision and always conclude your response with 'FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL**' to confirm your recommendation. Do not forget to utilize lessons from past decisions to learn from your mistakes. Here is some reflections from similar situations you traded in and the lessons learned: {past_memory_str}""", + "content": f"""You are a crypto trading agent analyzing cryptocurrency market data for a specific trading pair (e.g., BTC/USDT). Based on your analysis, provide a specific recommendation to BUY, SELL, or HOLD the base asset relative to the quote asset for the pair {pair_context}, along with the quantity for BUY and SELL \ + End with a firm decision and always conclude your response with 'FINAL TRANSACTION PROPOSAL: **BUY/HOLD/SELL** **QUANTITY**' to confirm your recommendation. \ + Do not forget to utilize lessons from past decisions to learn from your mistakes. Here is some reflections from similar situations you traded in and the lessons learned: {past_memory_str}""", }, context, ]