Get ROMA-01 Trading Platform running in 5 minutes.
Before starting, make sure you have:
- Python 3.12 or 3.13 installed (
⚠️ NOT 3.14 - DSPy doesn't support it yet) - Node.js 18+ installed
- Aster DEX API Wallet credentials:
- Main wallet address (User)
- API wallet address (Signer)
- API wallet private key
- Get them at: https://www.asterdex.com/en/api-wallet
- DeepSeek API Key (recommended):
- Sign up at: https://platform.deepseek.com
- Cost: ~$0.14 per 1M tokens (very cheap!)
Option A: Automatic Setup (Recommended) 🚀
cd /path/to/roma-01/backend
./setup.shThe script will automatically:
- Detect the correct Python version (3.12 or 3.13)
- Create virtual environment
- Install all dependencies
Option B: Manual Setup
# Navigate to the project directory
cd /path/to/roma-01/backend
# Check Python version (must be 3.12 or 3.13)
python3 --version
# If you have Python 3.14, use 3.13 instead:
python3.13 --version # Should show Python 3.13.x
# Create virtual environment (use python3.13 if you have 3.14)
python3.13 -m venv venv
# OR if you have 3.12:
# python3.12 -m venv venv
# OR if python3 is already 3.12 or 3.13:
# python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install backend dependencies
pip install -e .# Create .env file
cp .env.example .env
# Edit .env with your credentials
nano .env # or use any editorAdd your credentials:
# Aster DEX
ASTER_USER=0x... # Your main wallet address
ASTER_SIGNER=0x... # API wallet address
ASTER_PRIVATE_KEY=... # API wallet private key (without 0x)
# DeepSeek AI
DEEPSEEK_API_KEY=sk-... # Your DeepSeek API key
# API Configuration
API_HOST=0.0.0.0
API_PORT=8000
CORS_ORIGINS=http://localhost:3000The default configuration is ready to use, but you can customize:
# Edit main agent configuration
nano config/models/deepseek-chat-v3.1.yamlKey settings:
default_coins: Trading pairs (BTC, ETH, SOL, BNB, DOGE, XRP)max_positions: Maximum number of simultaneous positions (default: 3)max_leverage: Maximum leverage to use (default: 10x)max_position_size_pct: Position size as % of account (default: 30%)stop_loss_pct: Stop loss percentage (default: 3%)take_profit_pct: Take profit percentage (default: 10%)
For detailed configuration options, see backend/config/README.md
Option A: Using Start Script (Recommended) 🚀
cd /path/to/roma-01/backend
./start.shOption B: Manual Start
# Make sure you're in the backend directory
cd /path/to/roma-01/backend
# Activate virtual environment (if not already activated)
source venv/bin/activate
# Start the server
python -m roma_trading.mainYou should see:
🚀 Starting ROMA Trading Platform
API Server: http://0.0.0.0:8000
Initialized TradingAgent: deepseek_aggressive
All agents started successfully
Keep this terminal open!
Open a NEW terminal:
# Navigate to frontend directory
cd /path/to/roma-01/frontend
# Install dependencies
npm install
# Create environment file
echo "NEXT_PUBLIC_API_URL=http://localhost:8000" > .env.local
# Start development server
npm run devYou should see:
ready - started server on 0.0.0.0:3000
Open your browser and visit:
You should see:
- List of active AI trading agents
- Real-time account balances
- Performance metrics
- Click on any agent to see detailed info
- Backend is running on port 8000
- Frontend is running on port 3000
- Can access http://localhost:3000
- See agent cards with "Running" status
- Account balance is showing
Your ROMA-01 Trading Platform is now running!
- First Decision: The AI will make its first trading decision in ~3 minutes
- Market Analysis: It analyzes 6 trading pairs (BTC, ETH, SOL, BNB, DOGE, XRP) with technical indicators
- Decision Making: Uses DSPy Chain-of-Thought reasoning with configurable LLM
- Trade Execution: Automatically places orders on Aster DEX with EIP-191 signing
- Performance Tracking: Records all trades and calculates detailed metrics
- Real-time Updates: Dashboard shows live positions, P&L, and AI reasoning
Watch the backend terminal for:
- Market data fetching
- AI decision making
- Trade execution
- Performance updates
- Main Page: Overview of all agents
- Agent Detail: Click any agent card for:
- Current positions
- Recent decisions (with reasoning)
- Performance metrics
- Trade history
- Start with Small Amounts: Test with $10-50 first
- Monitor Closely: Check the system every 10-15 minutes initially
- Understand Decisions: Review the AI's reasoning in decision logs
- Set Limits: Use the risk management settings
ModuleNotFoundError: No module named 'roma_trading':
# Make sure you activated the virtual environment!
cd /path/to/roma-01/backend
source venv/bin/activate
python -m roma_trading.mainPython version error (DSPy not found):
# Check Python version
python3 --version
# If 3.14, you need to use 3.13 or 3.12
python3.13 --version
# Recreate virtual environment with correct Python
rm -rf venv
python3.13 -m venv venv
source venv/bin/activate
pip install -e .Backend won't start:
# Check if port 8000 is already in use
lsof -i :8000
# If yes, kill the process or change port in .envFrontend can't connect:
# Verify backend is running
curl http://localhost:8000/health
# Should return: {"status":"healthy"}No trades happening:
- AI is being conservative (this is normal!)
- Check market conditions
- Review decision logs for reasoning
- The system waits for high-confidence opportunities
Graceful shutdown:
- Frontend terminal: Press
Ctrl+C - Backend terminal: Press
Ctrl+Cand wait for "Stopped trading agent..."
The platform supports 6 different LLMs. Edit backend/config/trading_config.yaml:
agents:
- id: "deepseek-chat-v3.1"
enabled: true
config_file: "config/models/deepseek-chat-v3.1.yaml"
- id: "qwen3-max"
enabled: true # Enable second model
config_file: "config/models/qwen3-max.yaml"
- id: "claude-sonnet-4.5"
enabled: true # Enable third model
config_file: "config/models/claude-sonnet-4.5.yaml"Note: Each model requires its own API key and dedicated Aster DEX account. See backend/ACCOUNT_SETUP.md for multi-account setup.
Edit agent config file to customize trading pairs:
strategy:
default_coins:
- "BTCUSDT" # Bitcoin
- "ETHUSDT" # Ethereum
- "SOLUSDT" # Solana
- "BNBUSDT" # Binance Coin
- "DOGEUSDT" # Dogecoin
- "XRPUSDT" # RippleAvailable Pairs: BTC, ETH, SOL, BNB, DOGE, XRP (all paired with USDT)
- Read the full README.md for detailed documentation
- Check agent detail pages for performance analytics
- Review decision logs to understand AI reasoning
- Experiment with different risk parameters
- Try multiple models in competition mode
- Check logs in
backend/logs/ - Review decision logs in
backend/logs/decisions/{agent_id}/ - GitHub Issues: Report bugs or ask questions
- Fetch Data: Account, positions, market prices
- Technical Analysis: MACD, RSI, EMA, volume
- AI Analysis: DSPy Chain-of-Thought reasoning
- Risk Check: Validate against risk rules
- Execute: Place orders on Aster DEX
- Log: Record decision and performance
- Win Rate: % of profitable trades
- Sharpe Ratio: Risk-adjusted returns (higher is better)
- Profit Factor: Total profit / Total loss (>1 is profitable)
- Max Drawdown: Largest peak-to-trough decline
Happy Trading! 🚀
Remember: This is an AI system, not a guarantee of profits. Always trade responsibly.