Discover and explore top open-source AI tools and projects—updated daily.
Nunchi-tradeAI framework for autonomous trading strategy discovery
Top 49.5% on SourcePulse
This project provides an autonomous system for researching and discovering high-performance trading strategies for perpetual futures on Hyperliquid. It targets engineers, researchers, and power users seeking to automate strategy development, offering a significant performance uplift (7.9x Sharpe ratio improvement) through AI-driven, zero-human-intervention experimentation.
How It Works
The system adapts Karpathy's autoresearch pattern, where an AI agent autonomously modifies a single file (strategy.py). Each modification is backtested against historical Hyperliquid perpetual futures data, and only improvements are retained. Strategies are scored based on a formula combining Sharpe ratio, trade count, maximum drawdown, and turnover. The core design emphasizes iterative refinement, with each successful commit to strategy.py representing an atomic experiment, and the Git history serving as a comprehensive log. The final discovered strategy is a 6-signal ensemble leveraging majority voting.
Quick Start & Requirements
uv (a fast Python package manager, installable via curl -LsSf https://astral.sh/uv/install.sh | sh).git clone https://github.com/Nunchi-trade/auto-researchtrading.gitcd auto-researchtradinguv run prepare.py (downloads data, ~1 min, cached to ~/.cache/autotrader/data/)uv run backtest.pynumpy, pandas, scipy, requests, pyarrow, and standard library.docs.nunchi.trade), Research (research.nunchi.trade).Highlighted Details
strategy.py can be edited, no new dependencies can be added, and each backtest has a 120-second time budget.Maintenance & Community
discord.gg/nunchi) and X (@nunchi).Licensing & Compatibility
Limitations & Caveats
The system is designed for autonomous modification of only strategy.py; altering core scripts like prepare.py or backtest.py is prohibited. The autonomous loop is intended to be driven by an LLM agent (e.g., Claude Code with the /autoresearch skill).
4 days ago
Inactive