--:--
Broker not connected — Click Connect to authorize Upstox
Agent: Stopped
PAPER
LIVE
TRADE:
 NSE --   MCX --  Mode: PAPER Capital: ₹10,000 News: OFF NN: 0 RL: 0 Strats: 0 Assets: --
Opening: -- Current: -- Day P&L: -- Charges: -- Net: -- Today: 0T 0W
Gross P&L
₹0
WR: 0%
Charges Paid
₹0
0 trades
NET P&L
₹0
0 wins
Avg Win / Loss
+0.0%
0.0% loss

Strategy Performance

No trades yet

Recent Trades

TimeStrategyULTypeP&LChNetExit
Waiting for trades...

Feature Importance Neural Net

Needs training data

AI Systems

Living Strategies 0

No strategies yet

Graveyard 0

None

Neural Net ML

Q-Learning RL

Genetic Engine Evo

Full Feature Importance

Trade History

TimeStrategySymbolDIVP%PnL%RsPeakExitHold
No trades

⚙️ PM2 Process Management

pm2 start ecosystem.config.js # Start all processes
pm2 stop all # Stop all
pm2 restart all # Restart all
pm2 restart financeagi-agent # Restart agent only
pm2 restart financeagi-dashboard # Restart dashboard only
pm2 status # Show process status
pm2 list # List all apps
pm2 save # Save process list
pm2 startup # Generate startup script
pm2 delete financeagi-agent # Remove from pm2

📋 PM2 Logs

pm2 logs financeagi-agent # Live agent logs
pm2 logs financeagi-agent --lines 100 # Last 100 lines
pm2 logs --nostream # All logs (no follow)
pm2 flush # Clear all pm2 logs
cat logs/agent.log | tail -50 # Direct log tail
tail -f logs/agent.log # Follow agent log

📊 PM2 Monitoring

pm2 monit # Real-time CPU/RAM monitor
pm2 show financeagi-agent # Detailed process info
pm2 describe financeagi-agent # Full description

🐍 Agent CLI Commands

python3 agent.py stats # Performance summary
python3 agent.py reset # Wipe all memory/trades
python3 agent.py # Run agent directly

🤖 Qwen2.5 Local LLM (Daily Update)

ollama list # Show loaded models
ollama run qwen2.5:3b # Interactive chat
ollama pull qwen2.5:3b # Download/update model
ollama ps # Show running models
python3 daily_update.py # Run daily LLM update
crontab -e # Edit cron (add daily job)
Cron entry (daily at 6 AM):
0 6 * * * cd /path/to/financeagi && python3 daily_update.py >> logs/llm_update.log 2>&1

🛢️ SQLite Database

sqlite3 data/v10.db "SELECT COUNT(*) FROM trades"
sqlite3 data/v10.db "SELECT strategy,COUNT(*),SUM(won) FROM trades GROUP BY strategy"
sqlite3 data/v10.db "DELETE FROM trades" # Wipe trades

🔧 Maintenance

pip install -r requirements.txt # Install deps
pkill -f agent.py # Force kill agent
rm data/nn.pkl data/rl.pkl data/strats.json # Reset AI models
ls -lh data/ # Check data files
du -sh logs/ # Check log size