This skill places REAL TRADES with REAL MONEY when enabled.
Key information:
autostart:false - Will NOT run automaticallyRequired:
SIMMER_API_KEY - Trading API key from simmer.markets/dashboardOptional (non-secret configuration):
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:
urllib (no requests library)tradejournal for trade logging (commented out in requirements.txt)This skill connects to 3 endpoints:
api.weather.gov (NOAA)
weather_trader_enhanced.py line ~250-280nominatim.openstreetmap.org (Geocoding)
weather_trader_enhanced.py line ~200-230api.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:
Create least-privilege key:
.env file (git-ignored)更多技能请访问小葱技能站7w4.net。
.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)autostart:false to autostart:trueWhen enabled: Runs every 6 hours (12am, 6am, 12pm, 6pm) When disabled: 100% inactive
Check your Simmer API key:
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:
autostart field in SKILL.mdSteps:
SKILL.md line 5 (the metadata line)"autostart":false to "autostart":trueopenclaw restartManual 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:
Market quality scoring weights:
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 和交易平台,可能存在网络不稳定风险,且自动交易功能需要用户充分理解潜在财务影响。总体而言,适合有经验的预测市场交易者使用,新手需谨慎测试后再启用自动交易。