pg_pre_event_flow_analysis
Analyze pre-resolution positioning on a Polymarket market. For the N days before the market's endDate, aggregates trades by wallet, classifies wallets new to the market in that window, detects volume concentration, timing clusters (minutes where ≥5 distinct wallets trade in sync), and pre-event volume spikes vs historical average. Returns a 0–100 risk score (CRITICAL/HIGH/MEDIUM/LOW/CLEAN) with triggered signals, top 10 positioners, and top 10 new wallets. Default window = 7 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| slug | No | ||
| max_pages | No | Trade pagination depth (default 10, max 25) | |
| days_before_end | No | Pre-event window size in days (1–90, default 7) |