PolySuggest – Polymarket Precision Terminal
The most precise decision-support terminal for Polymarket traders – combining real-time market data, AI-driven edge detection, probability calibration, position management, and execution capabilities.
Built for institutional & advanced retail traders who need:
- Edge discovery – Model vs market price mismatches
- Position management – Sizing, correlation, portfolio risk
- Execution infrastructure – Limit orders, laddering, liquidation risk
- Research workflows – Trend → hypothesis → execution in minutes
Why PolySuggest?
| Feature | Description |
|---|---|
| Real-time Edge Detection | Compares trend sentiment to market probability; flags mismatches >20% |
| Calibrated Probabilities | Bayesian inference with credible intervals (e.g., 0.55 ± 0.08) |
| Expected Value Ranking | Ranks markets by risk-adjusted EV × liquidity × confidence |
| Portfolio Risk Management | Correlation analysis, VaR, liquidation warnings, hedge suggestions |
| Trend-aware Research | NewsAPI + Twitter + CoinGecko sentiment signals |
| Overlap Protection | Gamma API checks ensure suggestions are novel |
| LLM-powered Reasoning | GPT-4o produces resolution rules, YES/NO framing, and rationale |
| Local Knowledge Base | SQLite persistence for bundles, calibration tracking, and analytics |
Architecture
┌─────────────────────────────────────────────────────────────────────┐
│ DATA LAYER │
├─────────────────────────────────────────────────────────────────────┤
│ TrendScanner │ MarketDataPoller │ PolymarketClient │
│ (NewsAPI, Twitter, │ (Gamma API 1s poll) │ (Existing markets│
│ CoinGecko) │ Order book, OHLCV │ overlap checks) │
└──────────┬─────────────┴──────────┬─────────────┴──────────┬────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────┐
│ INTELLIGENCE LAYER │
├─────────────────────────────────────────────────────────────────────┤
│ EdgeDetector │ InferenceEngine │ SuggestionEngine │
│ (Sentiment vs price │ (Bayesian prob + │ (LangChain + │
│ divergence) │ credible intervals) │ GPT-4o) │
└──────────┬─────────────┴──────────┬─────────────┴──────────┬────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────┐
│ EXECUTION LAYER │
├─────────────────────────────────────────────────────────────────────┤
│ PortfolioTracker │ RiskManager │ OrderManager │
│ (Positions, P&L, │ (VaR, correlation, │ (Limit orders, │
│ exposure) │ hedge suggestions) │ laddering) │
└──────────┬─────────────┴──────────┬─────────────┴──────────┬────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────┐
│ OUTPUT LAYER │
├─────────────────────────────────────────────────────────────────────┤
│ CLI (Typer + Rich) │ Storage (SQLite) │ Reporting │
│ suggest, edges, │ Bundles, positions, │ JSON, Markdown, │
│ calibrate, trade │ orders, calibrations │ dashboards │
└─────────────────────────────────────────────────────────────────────┘
Core Modules
| Module | Purpose |
|---|---|
trend_scanner.py |
NewsAPI, Twitter, CoinGecko trends with VADER sentiment |
polymarket_client.py |
Gamma API client for markets, prices, order book |
market_data.py |
Real-time polling + caching (1s updates) |
edge_detector.py |
Sentiment vs market price divergence scoring |
inference_engine.py |
Bayesian probability estimation with PyMC |
ai.py |
LangChain + GPT-4o suggestion generation |
orchestrator.py |
End-to-end pipeline coordination |
portfolio_tracker.py |
Position management & P&L tracking |
risk_manager.py |
VaR, correlation analysis, liquidation risk |
calibration.py |
Historical accuracy metrics (Brier score, ROI) |
storage.py |
SQLite persistence for all entities |
cli.py |
Typer commands: suggest, edges, calibrate, trade |
Quick Start
git clone https://github.com/BeachTexture/PolySuggest.git
cd PolySuggest/polymarket-ai-market-suggestor
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp ENV.sample .env
# Add your API keys to .env
Generate Market Suggestions
polysuggest suggest "AI regulation" --keywords "AI,regulation" --count 4 \
--markdown reports/ai.md --output reports/ai.json
Detect Edges (Coming Soon)
polysuggest edges --top 10 # Top edges by EV
polysuggest watch --threshold 0.25 # Real-time edge alerts
Portfolio Commands (Coming Soon)
polysuggest positions --summary # Current holdings & P&L
polysuggest calibrate # Model accuracy report
polysuggest trade place --market <id> --outcome YES --size 100 --limit 0.45
History & Analytics
polysuggest summarize # History of suggestion runs
polysuggest show 3 # Detailed view for run #3
polysuggest insights # Aggregated stats
Configuration
Copy ENV.sample to .env and configure:
| Variable | Description |
|---|---|
OPENAI_API_KEY |
GPT-4o API key |
OPENAI_MODEL |
Model override (default: gpt-4o) |
POLYMARKET_API_BASE |
Gamma API endpoint |
NEWS_API_KEY |
NewsAPI key for trend scanning |
TWITTER_BEARER_TOKEN |
Twitter v2 bearer token |
POLYSUGGEST_DATA_DIR |
SQLite storage directory |
CHROMA_PERSIST_PATH |
Vector store path for RAG |
No API key? Falls back to deterministic heuristic mode for offline testing.
Roadmap
Phase 1: Market Intelligence Hub (MVP)
- Trend scanning (NewsAPI, Twitter, CoinGecko)
- LLM-powered market suggestions
- Overlap protection via Gamma API
- Real-time market data pipeline (1s polling)
- Edge detection (sentiment vs price divergence)
- Calibration tracking (Brier score, accuracy)
Phase 2: Edge Engine
- Bayesian probability estimation (PyMC)
- Expected value ranking
- Base rate calculation from historical data
Phase 3: Portfolio & Execution
- Position tracking & P&L
- Correlation analysis
- Order management (paper trading → live)
- Backtesting engine
Phase 4: Research & ML
- Semantic search on market history (RAG)
- Multi-model ensemble (GPT-4o + SVM + LSTM)
- Automated daily research reports
Development
pip install -r requirements.txt
pytest # Run all tests
pytest tests/test_storage.py -v # Single test file
ruff check src/ # Lint
black src/ tests/ # Format
Run CLI without installing:
python -m polysuggest.cli suggest "crypto regulation"
Target Metrics
| Metric | Target |
|---|---|
| Price update latency | <1 second |
| Edge detection accuracy | >70% |
| Calibration (Brier score) | <0.20 |
| Research velocity | Trend → execution <15 min |
License
Apache-2.0 – see LICENSE
Release files for polymarket-ai-market-suggestor 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polymarket_ai_market_suggestor-0.2.0.tar.gz | 20.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polymarket_ai_market_suggestor-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.0 kB
Release files / polymarket_ai_market_suggestor-0.2.0.tar.gz
| Download URL | polymarket_ai_market_suggestor-0.2.0.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed4f395b65264fe4bc527f85838192c249b5a0e8f50265e01438f1bb7dd63bcc
|
|
BLAKE2b-256 checksum How to use checksums |
714fa349a6d2517c77101e44f0edf528f00c226f01995e63c1bf343271b88e69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / polymarket_ai_market_suggestor-0.2.0-py3-none-any.whl
| Download URL | polymarket_ai_market_suggestor-0.2.0-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efff145e336cdfc7f15c37598ac12b6a6dd76d67c16e27d88373a3d32aa3dfbc
|
|
BLAKE2b-256 checksum How to use checksums |
262e1c22605cc1d2856ddf59a7fd32258a74cc4974cdd2f23b021d2706e1517c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|