This project implements an autonomous trading agent using LangChain and Anthropic's Claude AI model. The agent can perform various trading-related tasks and provide real-time updates through a server-sent events (SSE) stream.
Sentient.Satoshis.mp4
)
- Autonomous trading decision-making
- Real-time updates via SSE
- Integration with various tools for market analysis and token information
- Configurable system prompts
- Auto-restart mechanism with a 1-minute pause between cycles
- Clone the repository
- Install dependencies:
npm install - Set up environment variables in a
.envfile:ANTHROPIC_API_KEY=your_anthropic_api_key ALCHEMY_API_KEY=your_alchemy_api_key
- Start the server:
npm start - Connect to the SSE endpoint to receive real-time updates from the agent
- Use the
stopAutonomousAgent()function to halt the agent's execution
startAutonomousAgent(): Initializes and runs the agentstopAutonomousAgent(): Stops the agent's execution- Various tools for market analysis and token information
Contributions are welcome! Please submit a pull request or create an issue for any bugs or feature requests.