name: weather-enhanced displayName: Weather Trading (Enhanced) description: Trade Polymarket weather markets using NOAA forecasts with dynamic confidence modeling and quality filtering. Use when user wants to trade temperature markets with advanced safeguards. metadata: {"clawdbot":{"emoji":"🌡️","requires":{"env":["SIMMER_API_KEY"]},"cron":"0 /6 * * ","autostart":false}} authors: - Enhanced by Claude attribution: "Based on Simmer weather skill, enhanced with dynamic confidence and quality scoring" version: "2.0.0"
This skill places REAL TRADES with REAL MONEY when enabled.
Key information:
- Default State: autostart:false - Will NOT run automatically
- Autonomous Behavior: Runs every 6 hours when manually enabled
- Financial Risk: Can deploy $30-60/day (max $100/day with quality filter)
- No Per-Trade Review: Trades execute automatically without approval
Required:
- SIMMER_API_KEY - Trading API key from simmer.markets/dashboard
Optional (non-secret configuration):
- 6 SIMMER_WEATHER_* environment variables for trading parameters (see Configuration)
No other credentials needed (no wallet keys, RPC endpoints, or cloud credentials).
Optional dependency: If you install tradejournal, it will log trade details. Not installed by default. Inspect source code before installing.
~/.openclaw/skills/weather-enhanced/.env file with API keypython-dotenv>=1.0.0 # Optional
Clean dependency list:
- Uses built-in urllib (no requests library)
- No web3, telegram bot, or other unused dependencies
- Optional: tradejournal for trade logging (commented out in requirements.txt)
7w4.net小葱技能站收录全网优质技能,值得收藏。
This skill connects to 3 endpoints:
Code location: weather_trader_enhanced.py line ~250-280
nominatim.openstreetmap.org (Geocoding)
Code location: weather_trader_enhanced.py line ~200-230
api.simmer.markets (Trading)
weather_trader_enhanced.py line ~300-350Note: If you install the optional tradejournal dependency, it may add endpoints.
Your SIMMER_API_KEY should have:
- Read portfolio (required)
- Read positions (required)
- Place trades (required)
- NO withdrawal permissions
- NO account modification permissions
Create least-privilege key:
1. Visit simmer.markets/dashboard → SDK tab
2. Create new API key
3. Select "Trading Only" if available
4. Never grant withdrawal rights
5. Store in .env file (git-ignored)
6. Rotate key after testing
.env file: Contains SIMMER_API_KEY (never committed)config.json: Trading parameters only (no secrets)Note: Legacy variables WALLET_PRIVATE_KEY and POLYGON_RPC_URL in .env are unused (web3 removed).
DO NOT SKIP THESE STEPS
# Inspect main trading logic
cat weather_trader_enhanced.py | less
# Verify network endpoints (should only find 3)
grep -n "urlopen\|Request\|http" weather_trader_enhanced.py
# Check API key usage (should only send to simmer.markets)
grep -n "api_key\|SIMMER_API_KEY" weather_trader_enhanced.py
# Check optional tradejournal usage
grep -n "tradejournal\|log_trade" weather_trader_enhanced.py
OpenClaw metadata controls:
- autostart:false = Skill will NOT run on startup (safe default)
- cron:"0 */6 * * *" = Schedule (executes only when autostart enabled)
- Enable by editing line 5: change autostart:false to autostart:true
- Verify this method with OpenClaw docs: https://docs.openclaw.ai/
- Manual file editing prevents accidental activation
- Alternative: Run manually without enabling autostart
When enabled: Runs every 6 hours (12am, 6am, 12pm, 6pm) When disabled: 100% inactive
Check your Simmer API key: - Can read portfolio? (required) - Can place trades? (required) - Can withdraw funds? (should be NO) - Can modify account? (should be NO)
If your key has withdrawal permissions, create a new trading-only key.
# Check balance first
python scripts/status.py
# Execute live trades (start with small balance)
python weather_trader_enhanced.py --live --smart-sizing
Only after successful manual testing.
OpenClaw uses metadata-based activation:
- Skills enable via autostart field in SKILL.md
- Verify with OpenClaw docs or platform UI
- Manual editing prevents accidental activation
Steps:
1. Edit SKILL.md line 5 (the metadata line)
2. Change "autostart":false to "autostart":true
3. Save file
4. Restart: openclaw restart
5. Check logs to verify scheduled runs
Manual runs only (alternative):
python weather_trader_enhanced.py --live --smart-sizing
This gives full control over trade timing.
# Check balance
python scripts/status.py
# Execute live trades
python weather_trader_enhanced.py --live --smart-sizing
# Optional: Dry run for testing
python weather_trader_enhanced.py --dry-run
SIMMER_API_KEY from simmer.markets/dashboard → SDK tabConfigure via environment variables or config.json:
| Variable | Default | Description |
|---|---|---|
SIMMER_WEATHER_ENTRY |
0.15 | Buy below this price |
SIMMER_WEATHER_EXIT |
0.45 | Sell above this price |
SIMMER_WEATHER_MAX_POSITION |
5.00 | Max USD per trade |
SIMMER_WEATHER_MAX_TRADES |
5 | Max trades per run |
SIMMER_WEATHER_LOCATIONS |
"ALL" | Cities to target |
SIMMER_WEATHER_MIN_QUALITY |
0.6 | Min market quality |
# Live trading
python weather_trader_enhanced.py --live --smart-sizing
# Check positions
python weather_trader_enhanced.py --positions
# View config
python weather_trader_enhanced.py --config
# Set config
python weather_trader_enhanced.py --set entry_threshold=0.20
# Optional: Dry run for testing
python weather_trader_enhanced.py --dry-run
Dynamic confidence adjusts based on lead time: - Same day: 90% - 1 day out: 88% - 2 days out: 85% - 3 days out: 80% - 7+ days: 60%
Market quality scoring weights: - Liquidity (40%) - Volume (30%) - Time to resolution (20%) - Price extremes (10%)
Only trades markets with score ≥ 60%.
"SIMMER_API_KEY not set" Set env var or add to .env file
"No weather markets found" Normal if no active markets on Polymarket
"Position size too small"
Increase max_position_usd or use --smart-sizing
"Quality score too low" Market filtered for low liquidity/volume
Before installing, verify:
weather_trader_enhanced.py sourcerequirements.txt has only python-dotenv>=1.0.0urllib for HTTPtradejournal, inspected source firstautostart:false in SKILL.md line 5.env file (local, never committed)python scripts/status.py successfully--live--dry-run firstautostart:falseIf any checkbox is unchecked, DO NOT enable this skill.
To stop immediately:
# Option 1: Disable in OpenClaw UI
# Option 2: Edit SKILL.md
# Change line 5: "autostart":false
# Then: openclaw restart
# Option 3: Stop OpenClaw entirely
openclaw stop
# Close positions manually on simmer.markets/dashboard
Source code is visible in weather_trader_enhanced.py
All network calls documented in this file
No hidden functionality or obfuscation
Use at your own risk. This skill places real trades with real money. Understand prediction markets and trading risks before use.
这个天气交易工具质量较好,安全意识强——默认禁用自动交易、限制每笔交易金额、提供详细的风险提示文档。功能完善,包含智能头寸管理、市场质量筛选和动态置信度评估。不足之处是依赖外部天气 API 和交易平台,可能存在网络不稳定风险,且自动交易功能需要用户充分理解潜在财务影响。总体而言,适合有经验的预测市场交易者使用,新手需谨慎测试后再启用自动交易。