Skip to main content

Polymarket real-profit web analyzer

Project description

analysis-poly

Real Profit (Fee-Excluded View)

PnL Ratio

中文说明见:README_zh.md

Polymarket real-profit analyzer with a web UI.

Scope (Important)

  • This tool is primarily designed for Polymarket crypto updown markets with taker fees.
  • The dashboard first discovers participated slugs from Polymarket user activity within the selected time range, then replays only the matched markets.
  • It is not intended as a universal PnL engine for all Polymarket market types.
  • Main purpose: quantify and visualize the impact of trading fees on real profitability (Net PnL vs No-Fee PnL).

Requirements

  • Python 3.11+ (recommended: 3.11)
  • uv package manager

Install As Package

uv pip install .
# or
pip install .

After install:

analysis-poly
analysis-poly-open --address 0xabc --keywords updown,15m

Run

uv sync
uv run python main.py

Open http://localhost: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/runs
  • GET /api/runs/{run_id}/stream (SSE)
  • POST /api/runs/{run_id}/stop
  • GET /api/runs/{run_id}/result
  • GET /api/runs/{run_id}/state

Test

uv run pytest

Frontend

  • Source: frontend/src
  • Build output: analysis_poly/static/dist/app.js and analysis_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

analysis_poly-0.1.4.tar.gz (729.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

analysis_poly-0.1.4-py3-none-any.whl (725.0 kB view details)

Uploaded Python 3

File details

Details for the file analysis_poly-0.1.4.tar.gz.

File metadata

  • Download URL: analysis_poly-0.1.4.tar.gz
  • Upload date:
  • Size: 729.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for analysis_poly-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0ed4b9416083cd90713a411efc452f8166e23e799095909d2f5c8e6d7e372258
MD5 a4d4c39b6bec1ce4042b56e65d7990c4
BLAKE2b-256 30f7dad3789aee2b3f266f98b4f66775afc5ef7b5b82daa4d239cc5fff0ce8e4

See more details on using hashes here.

File details

Details for the file analysis_poly-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: analysis_poly-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 725.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for analysis_poly-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a54d54b40fc079bef7f940e79d2067101767aa86a58393c9a355684ac2e6e7db
MD5 cdb2d883fdee157187dede2c703714b8
BLAKE2b-256 01c5b7f022b76ef4c40fb591790067a022759a192a96a32346c271c5c48c3b28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page