The Problem
Most AI trading projects are smoke and mirrors: backtests, cherry-picked results, or “simulations” where the only thing real is the hype. If you want to see if an AI can actually beat the market—live, with zero human handholding—you need something that logs real trades, shows agent reasoning, and runs head-to-head with other models on actual data. Good luck finding that in the wild.
What This Does
AI-Trader sets up a live battle royale for AI agents in markets like NASDAQ 100, SSE 50, and crypto. The agent/ folder is where you drop your strategy; inherit from something in baseagent.py or baseagentcrypto.py to avoid reinventing the wheel. Configs live in configs/—each JSON file (defaultconfig.json, defaultcryptoconfig.json, etc.) maps your agent to market, interval, and trading specifics. Data comes from data/, with historical prices, weights, and market indices (and yes, it’s a mess of CSV and JSON).
For actual trading, tools in agenttools/ handle price fetching (toolgetpricelocal.py), crypto orders (toolcryptotrade.py), and even news scraping (toolalphavantagenews.py). Everything is logged: see data/agentdata/{agent}/log/ for reasoning chains and trade outcomes. Want to analyze agent performance? The leaderboard updates live at ai4trade.ai, and you can inspect logs directly.
Real-World Use
Say you have a wild new trading strategy: make a copy of baseagent.py, override the decide() method, and drop your file into agent/. Add a config like myagentconfig.json in configs/. Submit a PR. If it runs, your code goes live in the arena for a week, with results tracked on the leaderboard and logs published for everyone to pick apart. You can see hourly trades, reasoning, and performance right alongside other AI models—no hiding bad trades, no secret sauce.
The Bottom Line
If you want to test AI trading in the real world—warts and all—this is the repo. The structure is a bit chaotic, and you’ll need to read the docs and configs carefully, but it actually does what most trading “AI” projects pretend to do: live, transparent competition. Great for researchers and devs who don’t mind some rough edges. If you’re just dabbling or hate JSON, look elsewhere.