Just downloaded the code? Get running in 5 minutes!
- Python 3.8+ installed
- Git installed
# 1. Clone the repository (if not already done)
git clone https://github.com/srivtx/fear-greed-sentiment-v2.git
cd fear-greed-sentiment-v2
# 2. Create virtual environment
python -m venv .venv
# 3. Activate virtual environment
# On Linux/Mac:
source .venv/bin/activate
# On Windows:
# .venv\Scripts\activate
# 4. Install dependencies
pip install -r requirements.txt
# 5. Download NLTK data (required)
python -c "import nltk; nltk.download('vader_lexicon'); nltk.download('punkt'); nltk.download('punkt_tab'); nltk.download('stopwords'); nltk.download('wordnet')"✅ Installation Complete! You're ready to run the system.
| I want to... | Use this command | Time needed |
|---|---|---|
| Quick Fear & Greed analysis | python main.py |
1-2 minutes |
| See live trading signals | real-time mode |
1-5 minutes |
| Get a complete analysis report | batch mode |
2-5 minutes |
| Test system performance | performance-test mode |
2-10 minutes |
| Try the original engine | legacy mode |
1-2 minutes |
What it does: Quick sentiment analysis with Fear & Greed Index calculation
# Simple one-click run
python main.pyExpected output:
Fear & Greed Sentiment Analysis Engine
=====================================
Collecting data from social media and news...
✓ Collected 173 Reddit posts
✓ Collected 34 news articles
✓ Collected market data for 13 symbols
Analyzing sentiment...
✓ Processed 207 texts with VADER sentiment analysis
✓ Applied financial lexicons and entity recognition
Results:
Fear & Greed Index: 70.87 (Greed)
Overall Sentiment: 0.142 (Positive)
Market Sentiment: Bullish
Generated 3 trading signals:
✓ BTC: STRONG_BUY (confidence: 0.85)
✓ ETH: HOLD (confidence: 0.72)
✓ Overall Market: BUY (confidence: 0.78)
✓ Created 5 visualizations in data/visualizations/
✓ Analysis complete!
Files created:
data/collection/- Raw collected datadata/sentiment/- Sentiment analysis resultsdata/signals/- Trading signalsdata/visualizations/- Charts and graphs
Perfect for: First-time users, quick analysis, simple trading signals
What it does: Continuously monitors Reddit, news, and markets to generate live trading signals
# Quick 2-minute test
python goquant_main.py --mode=real-time --duration=2 --no-twitter
# Run for 5 minutes (recommended for first try)
python goquant_main.py --mode=real-time --duration=5 --no-twitter
# Run indefinitely (Ctrl+C to stop)
python goquant_main.py --mode=real-time --no-twitterExpected output:
Starting GoQuant Fear & Greed Engine in REAL-TIME mode
============================================================
Real-time engine started successfully
Processing social media and market data streams...
Generating sentiment analysis and trading signals...
=== PERFORMANCE METRICS ===
Texts processed: 175 (174.0/min)
Signals generated: 7 (7.0/min)
Perfect for: Live trading, production systems, continuous monitoring
What it does: Collects data, analyzes sentiment, generates signals, and creates visualizations
# Full analysis (recommended for first try)
python goquant_main.py --mode=batch --no-twitter
# Quick Reddit-only analysis
python goquant_main.py --mode=batch --source=reddit --no-twitter
# Analyze only existing data (faster)
python goquant_main.py --mode=batch --analyze-only --no-twitterExpected output:
Starting GoQuant Fear & Greed Engine in BATCH mode
============================================================
Phase 1: Data Collection
Phase 2: Advanced Sentiment Analysis
Phase 3: Advanced Signal Generation
Phase 4: Visualization Generation
BATCH PROCESSING COMPLETED
Files created:
data/collection/- Raw datadata/sentiment/- Analysis resultsdata/signals/- Trading signalsdata/visualizations/- Charts and graphs
Perfect for: Research, backtesting, detailed analysis reports
What it does: Tests if the system meets high-frequency trading requirements
# Quick 2-minute test
python goquant_main.py --mode=performance-test --duration=2 --no-twitter
# Standard 5-minute test (recommended)
python goquant_main.py --mode=performance-test --duration=5 --no-twitter
# Extended 10-minute test
python goquant_main.py --mode=performance-test --duration=10 --no-twitterExpected output:
PERFORMANCE TEST RESULTS
============================================================
GoQuant Requirements Analysis:
✅ Sentiment Analysis: PASSED (0.13ms < 100ms target)
✅ Signal Generation: PASSED (245ms < 500ms target)
❌ Throughput: FAILED (174/min < 10,000/min target)
⚠️ MOST GOQUANT REQUIREMENTS MET
Pass rate: 66.7% (2/3)
Perfect for: System validation, performance optimization, compliance testing
What it does: Runs the original simple engine for comparison
# Basic run
python goquant_main.py --mode=legacy --no-twitterExpected output:
Fear & Greed Index: 70.87 (Greed)
Generated 3 trading signals
Created 5 visualizations
Perfect for: Compatibility testing, simple debugging, comparison with new system
Issue: ModuleNotFoundError: No module named 'nltk'
# Solution: Install dependencies
pip install -r requirements.txtIssue: LookupError: Resource vader_lexicon not found
# Solution: Download NLTK data
python -c "import nltk; nltk.download('vader_lexicon'); nltk.download('punkt'); nltk.download('punkt_tab')"Issue: Twitter rate limiting errors
# Solution: Always use --no-twitter flag
python goquant_main.py --mode=real-time --no-twitterIssue: Slow performance or high memory usage
# Solution: Limit duration
python goquant_main.py --mode=real-time --duration=5 --no-twitterIssue: Permission errors on Windows
# Solution: Run as administrator or use different directoryTexts processed: 175 (174.0/min) # Social media posts analyzed
Signals generated: 7 (7.0/min) # Trading signals created
Queue sizes: Data=0, Sentiment=0 # System health (0 = good)
data/
├── collection/ # Raw data from Reddit, news, markets
├── sentiment/ # Sentiment analysis results
├── signals/ # Trading signals with reasoning
└── visualizations/ # Charts and graphs (.png files)
✅ PASSED = Meets requirements
❌ FAILED = Needs optimization
⚠️ PARTIAL = Most requirements met
# Simple Fear & Greed analysis
python main.py# Start with real-time mode for live signals
python goquant_main.py --mode=real-time --duration=10 --no-twitter# Use batch mode for comprehensive analysis
python goquant_main.py --mode=batch --no-twitter# Test system performance first
python goquant_main.py --mode=performance-test --duration=5 --no-twitter
# Then try real-time development
python goquant_main.py --mode=real-time --duration=2 --no-twitter --log-level=DEBUG# See detailed logs
python goquant_main.py --mode=real-time --duration=2 --log-level=DEBUG# Reddit only
python goquant_main.py --mode=batch --source=reddit --no-twitter
# News only
python goquant_main.py --mode=batch --source=news --no-twitter
# Market data only
python goquant_main.py --mode=batch --source=market --no-twitter# 30 seconds (very quick test)
python goquant_main.py --mode=real-time --duration=0.5 --no-twitter
# 1 hour (extended analysis)
python goquant_main.py --mode=real-time --duration=60 --no-twitter# Logs are saved to: fear_greed_engine_YYYYMMDD.log
tail -f fear_greed_engine_*.log# Test basic functionality (simple Fear & Greed analysis)
python main.py
# Test web interface
python web_app.py# Check Python version
python --version # Should be 3.8+
# Check dependencies
pip list | grep -E "(nltk|pandas|numpy|requests)"- ✅ Installation completed without errors
- ✅ Simple mode (
python main.py) runs successfully - ✅ Real-time mode runs and shows metrics
- ✅ Batch mode creates files in
data/directory - ✅ Performance test shows results
- ✅ No critical errors in logs
🎊 Congratulations! You're running the GoQuant Fear & Greed Sentiment Engine!
- Read the full guide:
GOQUANT_MODES_GUIDE.md - Explore the code: Start with
goquant_main.py - Customize settings: Edit
config/config.json - Add your APIs: Set up Reddit/News API keys for more data
- Build your strategy: Modify signal generation logic
Happy Trading! 📈🚀