Discover and explore top open-source AI tools and projects—updated daily.
sanketagarwalLLM-powered perpetual futures trading agent
New!
Top 83.6% on SourcePulse
Summary
This project provides an AI-powered trading agent designed for executing perpetual futures trades on the Hyperliquid exchange. It targets users interested in leveraging advanced AI models like Claude for market analysis and automated trading across a wide range of crypto and TradFi assets. The primary benefit is an automated trading system that combines sophisticated market analysis with robust, code-enforced risk management.
How It Works
The agent operates in iterative loops, fetching real-time account state and market candle data. It locally computes a suite of technical indicators (EMA, RSI, MACD, etc.) for selected assets. This comprehensive market context, along with defined risk parameters, is then sent to the Claude LLM, which generates trading decisions (buy/sell/hold) including allocation, take-profit, and stop-loss levels. A dedicated risk manager validates these decisions against hard-coded safety guards before executing trades via the Hyperliquid API.
Quick Start & Requirements
pip install hyperliquid-python-sdk anthropic python-dotenv aiohttp requestspython3 src/main.py.env file with API keys and wallet addresses. Key environment variables include ANTHROPIC_API_KEY, HYPERLIQUID_PRIVATE_KEY, HYPERLIQUID_VAULT_ADDRESS, ASSETS, and INTERVAL.dashboard/ directory.Highlighted Details
/diary for trade logs and /logs for LLM request history when running.Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or project roadmaps are provided in the README.
Licensing & Compatibility
The project operates under a "Use at your own risk" disclaimer with no explicit open-source license mentioned. Compatibility is primarily with the Hyperliquid exchange and its supported HIP-3 markets. Commercial use is implicitly discouraged due to the lack of guarantees and audits.
Limitations & Caveats
This code has not undergone formal auditing, and its use carries inherent financial risk, with no guarantee of returns. The project is presented as-is, and users assume full responsibility for any trading outcomes.
3 weeks ago
Inactive
TauricResearch