18 Commits

Author SHA1 Message Date
SII-leiyu 1bdf56594c Add normalized size filter and remove obsolete polling config
- Add normalized size filter (usdc_size / √volume) to whale detection,
  making signal significance comparable across different market sizes
- Remove dead polling config (fetch_interval_seconds, tier*_poll_interval)
  since RTDS WebSocket replaced HTTP polling

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-06 12:25:51 +08:00
SII-leiyu af5bbd0bce Replace HTTP polling with RTDS WebSocket for real-time trade monitoring
- Add rtds_client.py: persistent WebSocket connection to wss://ws-live-data.polymarket.com
  with auto-reconnect, heartbeat, and trade message parsing
- Rewrite trade_monitor.py: single WebSocket receives ALL trades in real-time,
  replacing per-market HTTP polling loops (zero missed trades, sub-second latency)
- Remove QPS rate limiter and per-market polling infrastructure (no longer needed)
- Update default LLM model to gemini-3.1-pro-preview
- Add websockets and python-socks dependencies

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-06 12:06:45 +08:00
SII-leiyu 265c8fb5a1 Relax whale detection filters to capture more mid-size trades
- Price range: 0.20-0.80 → 0.10-0.90
- Absolute min trade size: $5K → $3K
- Dynamic threshold base: $10K → $5K, range $3K-$50K
- Resolution window: 6h-90d → 3h-180d
- Anomaly score threshold: 0.65 → 0.55

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-05 11:41:16 +08:00
SII-leiyu 3de7cd3373 Upgrade README to product-grade with 7-step analysis showcase and real report format
- Redesign README with polished badges, structured report preview, collapsible config sections
- Update sample report to match actual 7-step deep analysis output (trade signal, event positions, long/short, info gap, historical pattern, asymmetry score)
- Add new whale trade report (US x Iran diplomatic meeting)
- Update signals database with latest data

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-05 00:11:10 +08:00
SII-leiyu 9eab3485a1 Update to tiered market coverage (700+ markets), refactor anomaly detection and trade monitoring
- Expand market coverage from 50 trending to 700+ active markets with three volume tiers
- Refactor anomaly detector with improved scoring logic
- Simplify trade monitor architecture
- Add tiered market fetching in market_fetcher
- Update prompts, settings, and etherscan service
- Remove requirements.txt (using other dependency management)
- Update README to reflect new capabilities
2026-05-02 18:59:12 +08:00
SII-leiyu 09b203110c Add official Polymarket API support, one-click setup, and redesigned README
- Add TRADE_API_MODE setting to switch between official (public, no auth) and internal API
- Implement _fetch_trades_official() using Polymarket data-api /trades endpoint
- Default to official API so users can run without private API access
- Add interactive setup.sh that guides users through API key configuration
- Add Makefile with common commands (setup, run, dashboard, etc.)
- Add Dockerfile and .dockerignore for container deployment
- Redesign README with badges, feature tables, mermaid diagram, architecture
- Clean up .env.example with organized sections and signup links
- Update pyproject.toml dependencies to match requirements.txt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 16:12:17 +08:00
SII-leiyu 88a5309bd9 Add demo examples: terminal output, analysis report, daily briefing
Three realistic example files in docs/examples/ showcasing the system's
output format. README updated with collapsible demo sections.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 17:05:13 +08:00
SII-leiyu 4a380a6769 Translate all remaining Chinese to English across entire codebase
All user-facing text now in English: reports, logs, email subjects,
briefing templates, stats summaries, trader profiles, signal context,
volatility reports, and Twitter section headers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 17:01:00 +08:00
SII-leiyu aa968421ca Translate all prompts and LLM-facing text to English
All system prompts, user prompts, analysis reports, and LLM context
text converted from Chinese to English for international audience.
Internal logs and comments with Chinese remain as-is (non-user-facing).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 16:53:20 +08:00
SII-leiyu 134ac61884 Replace "insider trading" terminology with "information asymmetry"
Neutral language reduces legal risk for open-source distribution.
All prompts, comments, and UI text updated. Database migration
code and field names (insider_evidence) preserved for compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 16:47:22 +08:00
SII-leiyu 76f22eec8b Note internal API is replaceable with Polymarket official API
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 16:38:43 +08:00
SII-leiyu 12499d4a10 Fix price range to match actual config (0-0.7)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 16:05:50 +08:00
SII-leiyu 9df88bcf89 Update README with complete system documentation
Rewrite README to reflect current architecture: 14 LLM tools,
multi-dimensional anomaly detection, signal accuracy tracking,
daily briefings, web dashboard, and all CLI commands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 16:03:58 +08:00
SII-leiyu b1cf6c9d31 Clean up: remove reports/briefings, switch to Gemini official API, delete unused scripts
- Clear all reports/ and daily_briefings/ data
- Update .env.example: LLM_BASE_URL to Gemini official endpoint
- Remove unused backtest.py and test_signal_tracking.py

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 15:54:47 +08:00
SII-leiyu 9b8b052a21 Update: sync local state to remote 2026-04-06 14:41:05 +08:00
SII-leiyu cc5c0c3578 feat: add anomaly signal detection and backtesting system
- Add anomaly signal model and history tracking
- Implement backtest framework with detailed reports
- Update whale analyzer prompts for better analysis
- Improve LLM analyzer with enhanced features
- Remove deprecated report history service
- Add numerous whale activity reports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-10 12:52:26 +08:00
SII-leiyu ed625564de feat: add historical report analysis for same market
- Add ReportHistoryService to find and summarize historical reports
- Integrate historical context into LLM analysis prompts
- Display market description in LLM input
- Show referenced historical report count in generated reports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-08 20:01:04 +08:00
SII-leiyu 0254e2c01a Initial commit: Polymarket Whale Watcher
- Add trade monitoring and whale detection system
- Add LLM-powered trade analysis
- Add market data fetching from Polymarket API
- Include example environment configuration
- Add automated report generation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 15:41:05 +08:00