Polymarket Oracle
by @georges91560
Multi-strategy arbitrage and trading bot for Polymarket prediction markets. Scans ALL markets (crypto, politics, sports, economics, entertainment) for parity...
clawhub install polymarket-oracleπ About This Skill
name: polymarket-oracle description: Multi-strategy arbitrage and trading bot for Polymarket prediction markets. Scans ALL markets (crypto, politics, sports, economics, entertainment) for parity arbitrage, logical arbitrage, tail-end trading, market making, and latency opportunities. version: 1.0.0 metadata: openclaw: emoji: "π―" requires: bins: ["python3"] env: required: - POLYMARKET_API_KEY - POLYMARKET_SECRET - POLYMARKET_PASSPHRASE optional: - TELEGRAM_BOT_TOKEN # For alerts only - TELEGRAM_CHAT_ID # For alerts only - WALLET_PRIVATE_KEY # Only for initial API key creation, not runtime network_behavior: makes_requests: true endpoints_allowed: - "https://clob.polymarket.com/*" - "https://gamma-api.polymarket.com/*" - "wss://ws-subscriptions-clob.polymarket.com/*" - "https://api.telegram.org/bot*" requires_credentials: true uses_websocket: true security_level: "L3 - Financial Execution (Real Money)" author: "Georges Andronescu (Wesley Armando)" license: "MIT" homepage: "https://github.com/georges91560/polymarket-oracle" repository: "https://github.com/georges91560/polymarket-oracle"
Polymarket Oracle β Multi-Strategy Arbitrage Bot
π― WHAT IT DOES
Scans ALL Polymarket markets for profitable opportunities.
Markets covered:
Total: 1000-5000+ markets scanned continuously
π₯ STRATEGIES DETECTED
1. Parity Arbitrage
What: YES + NO prices don't sum to $1.00
YES price: $0.45
NO price: $0.52
Total: $0.97Buy both β Guaranteed payout: $1.00
Profit: $0.03 (3.1%)
Risk: ZERO (guaranteed profit)
Frequency: 5-20 per day Duration: 2-15 seconds Win rate: 100% (if executed)
2. Logical Arbitrage
What: Impossible price combinations between related markets
Market A: "Chiefs win Super Bowl" = 28%
Market B: "AFC team wins" = 24%Impossible! Chiefs ARE an AFC team!
Buy "AFC wins" at 24%
If Chiefs win (28%) β AFC wins β Profit
If other AFC wins β Profit
Cannot lose unless NFC wins
Frequency: 2-10 per day Duration: Minutes to hours Win rate: 90-95%
3. Tail-End Trading
What: Buy highly certain outcomes (>95%) just before resolution
Event: Fed keeps rates (99% certain)
Market price: $0.97Buy at $0.97
Resolution: $1.00
Profit: $0.03 (3.1%)
Risk: Very low (event almost certain)
Frequency: 10-30 per day Duration: Hours to days Win rate: 95-98%
4. Market Making
What: Provide liquidity, earn spread + maker rebates
Token midpoint: $0.50Place orders:
BID: $0.475 (maker)
ASK: $0.525 (maker)
Spread capture: $0.05 (10%)
+ Polymarket rebates
+ Liquidity rewards (3x multiplier)
Monthly: 10-25% annualized
Frequency: Continuous Duration: Indefinite Win rate: 80-90% (inventory risk)
5. Latency Arbitrage
What: Trade on information before market adjusts
Bitcoin 5-min market:
Monitor Binance/Chainlink feed
When price crosses threshold
Bot knows resolution 2-15s before UI Trade before market reacts
Frequency: 50-200 per day (crypto markets) Duration: Seconds Win rate: 70-85%
6. Combinatorial Arbitrage (AI-powered)
What: Find mispriced relationships between multiple markets
Using sentence embeddings (e5-large-v2)
Find related markets:
"Trump wins election"
"Trump wins popular vote"
"Trump wins by 5%+" If Trump wins by 5%+ β wins popular vote
But prices show 30% vs 48% = Mispricing
Frequency: 3-15 per day Duration: Hours to days Win rate: 75-90%
π MARKET CATEGORIZATION
Automatic categorization by keywords:
Categories = {
'crypto': Bitcoin, Ethereum, DeFi, altcoins
'politics': Elections, presidents, votes, polls
'sports': NBA, NFL, Soccer, UFC, Tennis
'economics': Fed, CPI, jobs, GDP, stocks
'technology': Apple, Tesla, Google, IPOs
'entertainment': Oscars, movies, celebrities
'weather': Hurricanes, temperatures, climate
'other': Everything else
}
Strategy application:
β‘ EXECUTION SPEED
Parallel Scanning:
Workers: 50 parallel threads
Markets scanned: 1000-2000 per minute
Opportunities detected: Real-time
Execution: <1 second from detection
Scan Cycle:
00s - Fetch all active markets (Gamma API)
05s - Categorize markets automatically
10s - Parallel scan with 50 workers
30s - Detect opportunities across 5 strategies
35s - Alert via Telegram
40s - Wait 20 seconds
60s - REPEAT
π° CAPITAL ALLOCATION
Default configuration:
Total capital: $10,000 (configurable)
Max per market: $1,000 (1-10% of capital)Strategy allocation:
Parity arb: 20% ($2,000)
Tail-end: 40% ($4,000)
Market making: 30% ($3,000)
Latency: 10% ($1,000)
Position sizing:
π± TELEGRAM ALERTS
Real-time notifications:
π― POLYMARKET OPPORTUNITIESFound 27 opportunities:
PARITY_ARBITRAGE: 8
TAIL_END: 12
MARKET_MAKING: 5
LATENCY: 2
Top 5 by profit:
β’ parity_arbitrage: 4.23%
NBA Lakers vs Warriors - Game Winner...
β’ tail_end: 3.87%
Fed Rate Decision - Keeps Rates...
β’ parity_arbitrage: 3.54%
Bitcoin Closes Above $45K Today...
β’ tail_end: 3.12%
Super Bowl Winner - Chiefs...
β’ market_making: 2.89%
Ethereum Above $2500 - 5min...
π‘οΈ RISK MANAGEMENT
Built-in protections:
Circuit breakers:
Daily loss > 5% β Pause 1 hour
Total drawdown > 10% β Alert + reduce sizes
API rate limits β Auto-throttle
Failed trades > 10 β Pause strategy
π― PERFORMANCE TARGETS
Conservative (Parity + Tail-End):
Capital: $10,000
Monthly ROI: 8-15%
Monthly profit: $800-$1,500
Trades/day: 10-30
Win rate: 92-98%
Aggressive (All Strategies):
Capital: $50,000
Monthly ROI: 15-30%
Monthly profit: $7,500-$15,000
Trades/day: 50-200
Win rate: 80-90%
Real stats (from research):
π API USAGE
Gamma API (Market Discovery):
GET /markets - Get all active markets
GET /markets/{id} - Get market details
Rate limit: 60 req/min
CLOB API (Trading):
GET /book?token_id={id} - Order book
GET /midpoint?token_id={id} - Midpoint price
GET /price?token_id={id}&side={BUY/SELL} - Best price
POST /order - Place order
DELETE /order - Cancel orderRate limit: Public 60/min, Authenticated 100/min
WebSocket (Real-time):
wss://ws-subscriptions-clob.polymarket.com/ws/market/{token_id}
Order book updates
Trade updates
Price changes
π SECURITY & TRANSPARENCY
What it does:
What it requires:
Safeguards:
Never:
β οΈ IMPORTANT NOTES
Polymarket specifics:
Capital requirements:
Legal:
Version: 1.0.0 License: MIT Author: Georges Andronescu (Wesley Armando)
SCAN EVERYTHING. TRADE EVERYTHING. PROFIT EVERYWHERE. π―π°
END OF SKILL