Five AIs battle for NASDAQ 100 supremacy. Zero human input. Pure competition.
Deploy this application to Railway without any API keys or configuration! The app runs in demo mode using local data, with optional API keys for full functionality.
๐ One-Click Deploy to Railway | ๐ Deployment Guide | ๐ Zero-Secrets Architecture
Features:
- โ Deploy in seconds without configuration
- โ Automatic cost protection and free-tier monitoring
- โ Gradual enhancement (add API keys later)
- โ Built-in Coolify migration support
| ๐ Rank | ๐ค AI Model | ๐ Total Earnings |
|---|---|---|
| ๐ฅ 1st | DeepSeek | ๐ +10.61% |
| ๐ฅ 2nd | Claude-3.7 | ๐ +4.03% |
| ๐ฅ 3rd | GPT-5 | ๐ +3.89% |
| 4th | Qwen3-max | ๐ +2.49% |
| Baseline | QQQ | ๐ +2.30% |
| 5th | Gemini-2.5-flash | ๐ -2.73% |
Daily Performance Tracking of AI Models in NASDAQ 100 Trading
๐ Railway Deployment โข ๐ Quick Start โข ๐ Performance Analysis โข ๐ ๏ธ Configuration Guide โข ไธญๆๆๆกฃ
AI-Trader enables five distinct AI models, each employing unique investment strategies, to compete autonomously in the same market and determine which can generate the highest profits in NASDAQ 100 trading!
- ๐ค Fully Autonomous Decision-Making: AI agents perform 100% independent analysis, decision-making, and execution without human intervention
- ๐ ๏ธ Pure Tool-Driven Architecture: Built on MCP toolchain, enabling AI to complete all trading operations through standardized tool calls
- ๐ Multi-Model Competition Arena: Deploy multiple AI models (GPT, Claude, Qwen, etc.) for competitive trading
- ๐ Real-Time Performance Analytics: Comprehensive trading records, position monitoring, and profit/loss analysis
- ๐ Intelligent Market Intelligence: Integrated Jina search for real-time market news and financial reports
- โก MCP Toolchain Integration: Modular tool ecosystem based on Model Context Protocol
- ๐ Extensible Strategy Framework: Support for third-party strategies and custom AI agent integration
- โฐ Historical Replay Capability: Time-period replay functionality with automatic future information filtering
Each AI model starts with $10,000 to trade NASDAQ 100 stocks in a controlled environment with real market data and historical replay capabilities.
- ๐ฐ Initial Capital: $10,000 USD starting balance
- ๐ Trading Universe: NASDAQ 100 component stocks (top 100 technology stocks)
- โฐ Trading Schedule: Weekday market hours with historical simulation support
- ๐ Data Integration: Alpha Vantage API combined with Jina AI market intelligence
- ๐ Time Management: Historical period replay with automated future information filtering
AI agents operate with complete autonomy, conducting market research, making trading decisions, and continuously evolving their strategies without human intervention.
- ๐ฐ Autonomous Market Research: Intelligent retrieval and filtering of market news, analyst reports, and financial data
- ๐ก Independent Decision Engine: Multi-dimensional analysis driving fully autonomous buy/sell execution
- ๐ Comprehensive Trade Logging: Automated documentation of trading rationale, execution details, and portfolio changes
- ๐ Adaptive Strategy Evolution: Self-optimizing algorithms that adjust based on market performance feedback
All AI models compete under identical conditions with the same capital, data access, tools, and evaluation metrics to ensure fair comparison.
- ๐ฐ Starting Capital: $10,000 USD initial investment
- ๐ Data Access: Uniform market data and information feeds
- โฐ Operating Hours: Synchronized trading time windows
- ๐ Performance Metrics: Standardized evaluation criteria across all models
- ๐ ๏ธ Tool Access: Identical MCP toolchain for all participants
๐ฏ Objective: Determine which AI model achieves superior investment returns through pure autonomous operation!
AI agents operate with complete autonomy, making all trading decisions and strategy adjustments without any human programming, guidance, or intervention.
- โ No Pre-Programming: Zero preset trading strategies or algorithmic rules
- โ No Human Input: Complete reliance on inherent AI reasoning capabilities
- โ No Manual Override: Absolute prohibition of human intervention during trading
- โ Tool-Only Execution: All operations executed exclusively through standardized tool calls
- โ Self-Adaptive Learning: Independent strategy refinement based on market performance feedback
A core innovation of AI-Trader Bench is its fully replayable trading environment, ensuring scientific rigor and reproducibility in AI agent performance evaluation on historical market data.
{
"date_range": {
"init_date": "2025-01-01", // Any start date
"end_date": "2025-01-31" // Any end date
}
}AI can only access market data from current time and before. No future information allowed.
- ๐ Price Data Boundaries: Market data access limited to simulation timestamp and historical records
- ๐ฐ News Chronology Enforcement: Real-time filtering prevents access to future-dated news and announcements
- ๐ Financial Report Timeline: Information restricted to officially published data as of current simulation date
- ๐ Historical Intelligence Scope: Market analysis constrained to chronologically appropriate data availability
- ๐ Market Efficiency Studies: Evaluate AI performance across diverse market conditions and volatility regimes
- ๐ง Decision Consistency Analysis: Examine temporal stability and behavioral patterns in AI trading logic
- ๐ Risk Management Assessment: Validate effectiveness of AI-driven risk mitigation strategies
- ๐ Equal Information Access: All AI models operate with identical historical datasets
- ๐ Standardized Evaluation: Performance metrics calculated using uniform data sources
- ๐ Full Reproducibility: Complete experimental transparency with verifiable results
AI-Trader Bench/
โโโ ๐ค Core System
โ โโโ main.py # ๐ฏ Main program entry
โ โโโ agent/base_agent/ # ๐ง AI agent core
โ โโโ configs/ # โ๏ธ Configuration files
โ
โโโ ๐ ๏ธ MCP Toolchain
โ โโโ agent_tools/
โ โ โโโ tool_trade.py # ๐ฐ Trade execution
โ โ โโโ tool_get_price_local.py # ๐ Price queries
โ โ โโโ tool_jina_search.py # ๐ Information search
โ โ โโโ tool_math.py # ๐งฎ Mathematical calculations
โ โโโ tools/ # ๐ง Auxiliary tools
โ
โโโ ๐ Data System
โ โโโ data/
โ โ โโโ daily_prices_*.json # ๐ Stock price data
โ โ โโโ merged.jsonl # ๐ Unified data format
โ โ โโโ agent_data/ # ๐ AI trading records
โ โโโ calculate_performance.py # ๐ Performance analysis
โ
โโโ ๐จ Frontend Interface
โ โโโ frontend/ # ๐ Web dashboard
โ
โโโ ๐ Configuration & Documentation
โโโ configs/ # โ๏ธ System configuration
โโโ prompts/ # ๐ฌ AI prompts
โโโ calc_perf.sh # ๐ Performance calculation script
- Multi-Model Concurrency: Run multiple AI models simultaneously for trading
- Configuration Management: Support for JSON configuration files and environment variables
- Date Management: Flexible trading calendar and date range settings
- Error Handling: Comprehensive exception handling and retry mechanisms
| Tool | Function | API |
|---|---|---|
| Trading Tool | Buy/sell stocks, position management | buy(), sell() |
| Price Tool | Real-time and historical price queries | get_price_local() |
| Search Tool | Market information search | get_information() |
| Math Tool | Financial calculations and analysis | Basic mathematical operations |
- ๐ Price Data: Complete OHLCV data for NASDAQ 100 component stocks
- ๐ Trading Records: Detailed trading history for each AI model
- ๐ Performance Metrics: Sharpe ratio, maximum drawdown, annualized returns, etc.
- ๐ Data Synchronization: Automated data acquisition and update mechanisms
Deploy CHEGGIE AI Trader to Railway with zero configuration required!
This application is designed for immediate deployment without any API keys. It runs in demo mode using local historical data, with optional API keys for full functionality.
Click the button to deploy instantly:
# Clone repository
git clone https://github.com/executiveusa/CHEGGIE-AI-Trader.git
cd CHEGGIE-AI-Trader
# Run deployment script
./deploy_railway.sh# Install Railway CLI
npm install -g @railway/cli
# Login and deploy
railway login
railway init
railway upDemo Mode (No Configuration Needed):
- โ Application starts successfully
- โ Uses pre-loaded NASDAQ 100 historical data
- โ Mock AI trading decisions
- โ All MCP services operational
- โ Trading simulation with local data
Full Mode (Add API Keys Later):
- Add
OPENAI_API_KEYfor real AI inference - Add
ALPHAADVANTAGE_API_KEYfor live market data - Add
JINA_API_KEYfor active web search
- Automatic resource monitoring
- Free-tier ceiling detection
- Auto-shutdown on limit breach
- Maintenance mode activation
- Coolify migration support
- Complete Deployment Guide - Step-by-step Railway deployment
- Zero-Secrets Architecture - Understanding the architecture
- Coolify Migration Guide - Migrate to self-hosted Coolify
- API Reference - All environment variables and secrets
- Start with demo mode - No configuration needed
- Monitor resources - Check Railway dashboard regularly
- Add secrets gradually - Enable features as needed
- Plan for scale - Coolify migration ready when needed
- Python 3.8+
- API Keys: OpenAI, Alpha Vantage, Jina AI
Run the Flowise dashboard locally:
cp .env.example .env
docker compose up -d # starts Flowise at :3000
pnpm dev # Vite app; dashboard at http://localhost:5173/agentsDeploy: reverse proxy /agents and /api/v1 to the Flowise service.
URL: https://lovable.dev/projects/dbaf2aff-f8d4-4161-b05d-40acdf00d282
There are several ways of editing your application.
Use Lovable
Simply visit the Lovable Project and start prompting.
Changes made via Lovable will be committed automatically to this repo.
Use your preferred IDE
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
The only requirement is having Node.js & npm installed - install with nvm
Follow these steps:
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run devEdit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
This project is built with:
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
Simply open Lovable and click on Share -> Publish.
Yes, you can!
To connect a domain, navigate to Project > Settings > Domains and click Connect Domain.
Read more here: Setting up a custom domain
This repository now includes vercel.json for Vite + React Router SPA rewrites.
npm install
npm run buildThen import the repo in Vercel and keep defaults:
- Framework Preset: Vite
- Build Command:
npm run build - Output Directory:
dist
Set the same runtime env vars you use locally (.env) inside the Vercel project settings.
- Client routes (e.g.
/dashboard,/auth,/language) are rewritten toindex.htmlviavercel.json. - For demo-only mode, no additional secrets are required.
