Polymarket market PnL web analyzer
Project description
analysis-poly
Real Profit (Fee-Excluded View)
中文说明见:README_zh.md
Polymarket market PnL analyzer with a web UI.
Scope (Important)
- The dashboard discovers markets from Polymarket user activity within the selected time range, then replays the matched markets.
- It is intended for Polymarket market analysis in general, including but not limited to crypto markets.
- Main purpose: quantify and visualize realized PnL, fee impact, market-level performance, and
Net PnLvsNo-Fee PnL.
Requirements
- Python
3.11+(recommended:3.11) uvpackage manager
Install As Package
uv pip install .
# or
pip install .
After install:
analysis-poly
analysis-poly-server --host 127.0.0.1 --port 8000
analysis-poly-open --address 0xabc --keywords updown,15m
Run
uv sync
uv run python main.py
Open http://localhost:8000.
After installing from PyPI or a built wheel, start the web server with:
analysis-poly-server --host 127.0.0.1 --port 8000
CLI Open + Auto Start
Use a standalone script to start server, open browser, and pass params in URL.
uv run -m analysis_poly.open_with_params \
--address 0xabc \
--keywords updown,15m \
--start-time "2026-03-01 00:00" \
--end-time "2026-03-02 00:00" \
--concurrency 8
Frontend will read query params, fill form fields, and auto start the run.
First Clone
analysis_poly/static/dist is committed in the repository, so first startup does not require front-end build.
If you modify frontend/src, rebuild assets:
npm install
npm run build
API
POST /api/runsGET /api/runs/{run_id}/stream(SSE)POST /api/runs/{run_id}/stopGET /api/runs/{run_id}/resultGET /api/runs/{run_id}/state
Test
uv run pytest
Frontend
- Source:
frontend/src - Build output:
analysis_poly/static/dist/app.jsandanalysis_poly/static/dist/app.css
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file analysis_poly-0.1.5.tar.gz.
File metadata
- Download URL: analysis_poly-0.1.5.tar.gz
- Upload date:
- Size: 730.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ac270dbbc34a050944afcc93d9b1d9661559681abd30f4a9afe2e5fee7ea0dc
|
|
| MD5 |
ad90bf8cb255c765da337182439c44bd
|
|
| BLAKE2b-256 |
3d6038e312e710d54775d7095546602f037b28fcb0fc6e7d5435c4bb83e56323
|
File details
Details for the file analysis_poly-0.1.5-py3-none-any.whl.
File metadata
- Download URL: analysis_poly-0.1.5-py3-none-any.whl
- Upload date:
- Size: 726.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9458b38140e06b816728a538f16bc6c1a271652656784a84629e3a0166dc818b
|
|
| MD5 |
23a7053198b58a09cefd0800eea25af1
|
|
| BLAKE2b-256 |
b7beb34b7fddb5e5edd6636ab9e6f30ddbfc073bbe06f41c7bef841844795f3c
|