A simple web application to fetch and download top markets and events data from Polymarket.
- Fetch top 50 markets by volume
- Fetch top 50 events by 24h volume
- View results in a sortable table
- Download data as CSV files
- Clone this repository
- Install required packages:
pip install -r requirements.txt- Run the web application:
# Option 1: Using the run script (recommended)
python run.py
# Option 2: Using Flask directly
python -m flask --app app run- Open your browser and navigate to http://127.0.0.1:5000/
- Click on either "Fetch Top Markets" or "Fetch Top Events"
- After the data is loaded, you can download the CSV file using the "Download CSV" button
app.py: Flask web applicationpolymarket.py: Module for fetching top markets datapolymarketevents.py: Module for fetching top events datatemplates/index.html: HTML template for the web interface
- Python 3.7+
- Flask
- Requests
- Pandas
- python-dateutil