A web application that helps traders find highly correlated cryptocurrency pairs sorted by market cap and price movement. The project automatically fetches and analyzes data from CoinGecko and Binance APIs, updating every 4 days through GitHub Actions.
-
Data Collection:
- Fetches top 300 cryptocurrencies by market cap
- Retrieves historical price data from Binance (with CoinGecko fallback)
- Calculates correlation coefficients between pairs
- Updates data automatically every 4 days
-
Web Interface:
- Dark mode modern UI
- Sort by correlation, market cap, or price movement
- Filter by minimum correlation (0.5 to 0.9)
- Search functionality for specific pairs
- Pagination (100 entries per page)
- Responsive design
- Custom scrollbar for better UX
-
Data Analysis:
- Multiple timeframes (7d, 30d, 90d)
- Combined market cap calculation
- Price movement analysis
- Correlation coefficient calculation
-
Frontend:
- React
- Material-UI
- Papa Parse (CSV parsing)
- Vite (Build tool)
-
Backend:
- Python script for data collection
- Pandas for data analysis
- CoinGecko API
- Binance API
-
Automation:
- GitHub Actions for scheduled updates
- Environment variables for API keys
- Automatic deployment to GitHub Pages
-
Clone the Repository:
git clone https://github.com/dev-bhaskar8/lp-data.git cd lp-data -
Install Dependencies:
# Frontend npm install # Backend pip install pandas requests python-dotenv tqdm
-
Environment Variables: Create a
.envfile:COINGECKO_API_KEY=your_api_key_here -
Run Locally:
# Generate data python crypto_correlation.py # Start development server npm run dev
- Add
COINGECKO_API_KEYto repository secrets - Enable Actions read & write permissions
- Data updates automatically every 4 days
- Manual triggers available in Actions tab
lp-data/
├── src/ # React frontend code
├── assets/ # Static assets
├── .github/workflows/ # GitHub Actions configuration
├── crypto_correlation.py # Data collection script
├── requirements.txt # Python dependencies
└── *.csv # Generated correlation data
- Primary: Binance API for historical price data
- Fallback: CoinGecko API when Binance data unavailable
- Market Data: CoinGecko API for market caps and rankings
Feel free to open issues or submit pull requests. Please ensure:
- Code follows existing style
- Tests pass (if added)
- Documentation is updated
- Commit messages are clear
MIT License - feel free to use and modify as needed.
Made with 💙 by Vaas