A Python application that fetches and analyzes market data from Capital.com API, displaying results in a beautiful, responsive web interface.
- 📊 Market Data Fetching: Automatically retrieves market data across multiple categories (Commodities, Forex, Indices, Cryptocurrencies, Shares)
- 📈 Performance Metrics: Calculates performance for multiple time periods (1W, 1M, 3M, 6M, YTD, 1Y, 5Y, 10Y)
- 🌐 Web Interface: Beautiful, responsive dark-themed web UI
- 🔍 Search & Filter: Real-time search and category filtering
- 📱 Mobile Responsive: Works perfectly on all devices
- 🚀 Auto-Launch: Automatically opens web browser when run
- Install dependencies:
pip install -r requirements.txt- Configure your credentials:
cp config_template.py config.pyEdit config.py and add your Capital.com API credentials:
- API Key
- Username (email)
- Password
The web interface includes:
- Statistics dashboard
- Real-time search
- Category filtering
- Sortable columns
- Color-coded performance metrics
- Auto-refresh functionality
Access at: http://localhost:5000
capital_analyzer.py- Core API clientrun_analyzer.py- Main execution scriptweb_viewer.py- Flask web servertemplates/index.html- Web interfaceconfig.py- Configuration (not in repo)requirements.txt- Python dependencies
- Python 3.x
- Flask (Web framework)
- Capital.com REST API
- HTML/CSS/JavaScript
MIT License