scrape and analyze top traders on a decentralized exchange. leaderboard data → parsed positions → live price fetch → insights in cli + html reports.
python tool to track whale activity. scrapes dex leaderboards with selenium, parses data (pnl, leverage, collateral, liquidation levels), and runs analysis. outputs insights in rich cli tables and generates timestamped html reports.
- scrape trader positions and orders with selenium
- parse leverage, pnl, collateral, liquidation prices
- analyze long vs short positions and leverage spread
- monitor pending orders and liquidation risk
- cli tables for quick terminal view
- auto-save html reports (
data/new.html,prev.html,old.html) - fetch live prices via coingecko api
requirements:
- python 3.8+
- pip
- firefox + geckodriver
install dependencies:
pip install -r requirements.txtrun:
python main.pyprints analysis to terminal and saves html reports in data/.
- scraper.py → selenium leaderboard scraper
- parser.py → clean and extract trading data
- sentimentAnalysis.py → run analysis and generate insights
MIT
open issues, send pull requests, improve.