Install
openclaw skills install momentum-polymarket-traderAutomated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected
openclaw skills install momentum-polymarket-traderAn automated trading skill that executes trades on Polymarket based on price momentum and market trend signals.
This skill runs every 15 minutes and:
This is a customizable template. The default signal is based on simple price momentum — you can replace it with:
- Different technical indicators (RSI, MACD, etc.)
- Machine learning model predictions
- External data sources (news, social media sentiment, etc.)
- Custom market scoring algorithms
The skill handles all the plumbing (market discovery, order execution, position management, safeguards). Your agent provides the alpha — just replace the
calculate_signal()function.
AION_API_KEY - Your AION SDK API key (get from https://pm-t1.bxingupdate.com/agents)WALLET_PRIVATE_KEY - Only needed for external-wallet self-custody tradingPOLYGON_RPC_URL - Custom Polygon RPC endpoint (optional)MAX_POSITION_SIZE - Maximum position per market (default: 10 USDC)MIN_EDGE_THRESHOLD - Minimum edge threshold for trading (default: 0.05, i.e., 5%)python momentum_trader.py
This simulates trades without executing real orders.
python momentum_trader.py --live
⚠️ Warning: This executes trades with real funds!
Edit the calculate_signal() function in momentum_trader.py to implement your trading strategy:
def calculate_signal(market_data, context):
"""
Replace this function to implement your custom signal logic
Returns:
- side: "yes" or "no" or None (no trade)
- confidence: confidence level between 0-1
- reasoning: human-readable trade rationale
"""
# Your custom logic here
pass
This skill includes multiple layers of protection:
Skill output includes:
======================================================================
Skill: momentum-polymarket-trader
Venue: polymarket (USDC.e)
Risk alerts:
- none
Decisions:
- "Will Bitcoin reach $100K in 2025?": HOLD (edge too small +2.1%)
- "2026 US Midterm Elections": TRADE YES size=5 reason=momentum signal +7.8%
- "OpenAI valuation over $300B?": SKIP (flip-flop warning)
Order updates:
- cancelled ORDER_123 (stale)
- new order ORDER_456 submitted
Auto-redemptions:
- redeemed market MKT_789: tx=0xabc...def
Check your AION agent settings for risk thresholds and market filters.
Ensure the AION_API_KEY environment variable is set correctly.
Check your wallet balance at https://pm-t1.bxingupdate.com/agents
npx clawhub@latest install momentum-polymarket-traderAION_API_KEYMIT License - free to use, modify, and distribute.