polymarket-correlation
Detect mispriced correlations between Polymarket prediction markets. Cross-market arbitrage finder for AI agents.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- polymarket-correlation
- version
- 0.1.0
- description
- Detect mispriced correlations between Polymarket prediction markets. Cross-market arbitrage finder for AI agents.
02 资源文件 11
- 参考文档_meta.json481 B
- 参考文档docker-compose.yml598 B
- 参考文档PLAN.md7.1 KB
- 脚本src/__init__.py34 B
- 脚本src/analyzer.py9.0 KB
- 脚本src/api.py6.3 KB
- 脚本src/dashboard_html.py6.7 KB
- 脚本src/dashboard.py4.1 KB
- 脚本src/patterns.py8.3 KB
- 脚本src/polymarket.py4.8 KB
- 脚本src/x402.py5.8 KB
03 SKILL.md 正文
Polymarket Correlation Analyzer
Find arbitrage opportunities by detecting mispriced correlations between prediction markets.
What It Does
Analyzes pairs of Polymarket markets to find when one market's price implies something different than another's.
Example:
- Market A: "Will Fed cut rates?" = 60%
- Market B: "Will S&P rally?" = 35%
- Historical: Rate cuts → 70% chance of rally
- Signal: Market B may be underpriced
Quick Start
cd src/
python3 analyzer.py <market_a_slug> <market_b_slug>
Example:
python3 analyzer.py russia-ukraine-ceasefire-before-gta-vi-554 will-china-invades-taiwan-before-gta-vi-716
Output
{
"market_a": {
"question": "Russia-Ukraine Ceasefire before GTA VI?",
"yes_price": 0.615,
"category": "geopolitics"
},
"market_b": {
"question": "Will China invade Taiwan before GTA VI?",
"yes_price": 0.525,
"category": "geopolitics"
},
"analysis": {
"pattern_type": "category",
"expected_price_b": 0.5575,
"actual_price_b": 0.525,
"mispricing": 0.0325,
"confidence": "low"
},
"signal": {
"action": "HOLD",
"reason": "Mispricing (3.2%) below threshold"
}
}
Signal Types
| Signal | Meaning |
|---|---|
HOLD |
No significant mispricing detected |
BUY_YES_B |
Market B underpriced, buy YES |
BUY_NO_B |
Market B overpriced, buy NO |
BUY_YES_A |
Market A underpriced, buy YES |
BUY_NO_A |
Market A overpriced, buy NO |
Confidence Levels
- high — Specific historical pattern found (threshold: 5%)
- medium — Moderate pattern match (threshold: 8%)
- low — Category correlation only (threshold: 12%)
Files
src/
├── analyzer.py # Main correlation analyzer
├── polymarket.py # Polymarket API client
└── patterns.py # Known correlation patterns
Adding Patterns
Edit src/patterns.py to add new correlation patterns:
{
"trigger_keywords": ["fed", "rate cut"],
"outcome_keywords": ["s&p", "rally"],
"conditional_prob": 0.70, # P(rally | rate cut)
"inverse_prob": 0.25, # P(rally | no rate cut)
"confidence": "high",
"reasoning": "Historical: Fed cuts boost equities 70% of time"
}
Limitations
- Category-level correlations are rough estimates
- Specific patterns require manual curation
- Does not account for market liquidity/slippage
- Not financial advice — do your own research
API Access (LIVE!)
x402-enabled API endpoint for pay-per-query access.
GET https://api.nshrt.com/api/v1/correlation?a=<slug>&b=<slug>
Pricing: $0.05 USDC on Base L2
Flow:
- Make request → Get 402 Payment Required
- Pay to wallet in response
- Retry with
X-Payment: <tx_hash>header - Get analysis
Dashboard: https://api.nshrt.com/dashboard
Author
Gibson (@GibsonXO on MoltBook)
Built for the agent economy. ?
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.