微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌡️

NOAA气象数据驱动的自动预测交易

Polymarket Weather Trader · v0.1.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 B 级 作者 johnjerry8749 公开目录收录
1.1k 下载 3 安装 4.3k 收藏 19 浏览

简介

基于NOAA天气预报数据自动交易Polymarket温度预测市场,复刻gopfan2百万美元策略,支持智能仓位管理与风险控制。

原始描述

Trade Polymarket weather markets using NOAA forecasts via Simmer API. Inspired by gopfan2's $2M+ strategy. Use when user wants to trade temperature markets,...

通过你的 Agent 添加

安装目录:polymarket-weather-trader-42776/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/polymarket-weather-trader-42776/
Codex CLI~/.codex/skills/polymarket-weather-trader-42776/
DeepSeek Harness~/.agents/skills/polymarket-weather-trader-42776/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: polymarket-weather-trader displayName: Polymarket Weather Trader description: Trade Polymarket weather markets using NOAA forecasts via Simmer API. Inspired by gopfan2's $2M+ strategy. Use when user wants to trade temperature markets, automate weather bets, check NOAA forecasts, or run gopfan2-style trading. metadata: {"clawdbot":{"emoji":"🌡️","requires":{"env":["SIMMER_API_KEY"]},"cron":null,"autostart":false}} authors:

  • Simmer (@simmer_markets) attribution: "Strategy inspired by gopfan2" version: "1.7.2" published: true

Polymarket Weather Trader

Trade temperature markets on Polymarket using NOAA forecast data.

When to Use This Skill

Use this skill when the user wants to:

  • Trade weather markets automatically
  • Set up gopfan2-style temperature trading
  • Buy low on weather predictions
  • Check their weather trading positions
  • Configure trading thresholds or locations

What's New in v1.2.0

  • Max Trades Per Run: New SIMMER_WEATHER_MAX_TRADES config to limit trades per scan cycle (default: 5)

v1.1.1

  • Status Script: New scripts/status.py for quick balance and position checks
  • API Reference: Added Quick Commands section with API endpoints

v1.1.0

  • Source Tagging: All trades tagged with sdk:weather for portfolio tracking
  • Smart Sizing: Position sizing based on available balance (--smart-sizing)
  • Context Safeguards: Checks for flip-flop warnings, slippage, time decay
  • Price Trend Detection: Detects recent price drops for stronger signals

Setup Flow

When user asks to install or configure this skill:

  1. Ask for Simmer API key

    • They can get it from simmer.markets/dashboard → SDK tab
    • Store in environment as SIMMER_API_KEY
  2. Ask about settings (or confirm defaults)

    • Entry threshold: When to buy (default 15¢)
    • Exit threshold: When to sell (default 45¢)
    • Max position: Amount per trade (default $2.00)
    • Locations: Which cities to trade (default NYC)
  3. Save settings to environment variables

  4. Set up cron (disabled by default — user must enable scheduling)

Configuration

Setting Environment Variable Default Description
Entry threshold SIMMER_WEATHER_ENTRY 0.15 Buy when price below this
Exit threshold SIMMER_WEATHER_EXIT 0.45 Sell when price above this
Max position SIMMER_WEATHER_MAX_POSITION 2.00 Maximum USD per trade
Max trades/run SIMMER_WEATHER_MAX_TRADES 5 Maximum trades per scan cycle
Locations SIMMER_WEATHER_LOCATIONS NYC Comma-separated cities
Smart sizing % SIMMER_WEATHER_SIZING_PCT 0.05 % of balance per trade

Supported locations: NYC, Chicago, Seattle, Atlanta, Dallas, Miami

Quick Commands

# Check account balance and positions
python scripts/status.py

# Detailed position list
python scripts/status.py --positions

API Reference:

  • Base URL: https://api.simmer.markets
  • Auth: Authorization: Bearer $SIMMER_API_KEY
  • Portfolio: GET /api/sdk/portfolio
  • Positions: GET /api/sdk/positions

Running the Skill

# Dry run (default — shows opportunities, no trades)
python weather_trader.py

# Execute real trades
python weather_trader.py --live

# With smart position sizing (uses portfolio balance)
python weather_trader.py --live --smart-sizing

# Check positions only
python weather_trader.py --positions

# View config
python weather_trader.py --config

# Disable safeguards (not recommended)
python weather_trader.py --no-safeguards

# Disable trend detection
python weather_trader.py --no-trends

# Quiet mode — only output on trades/errors (ideal for high-frequency runs)
python weather_trader.py --live --quiet

# Combine: frequent scanning, minimal noise
python weather_trader.py --live --smart-sizing --quiet

How It Works

Each cycle the script:

  1. Fetches active weather markets from Simmer API
  2. Groups markets by event (each temperature day is one event)
  3. Parses event names to get location and date
  4. Fetches NOAA forecast for that location/date
  5. Finds the temperature bucket that matches the forecast
  6. Safeguards: Checks context for flip-flop warnings, slippage, time decay
  7. Trend Detection: Looks for recent price drops (stronger buy signal)
  8. Entry: If bucket price < threshold and safeguards pass → BUY
  9. Exit: Checks open positions, sells if price > exit threshold
  10. Tagging: All trades tagged with sdk:weather for tracking

Smart Sizing

With --smart-sizing, position size is calculated as:

  • 5% of available USDC balance (configurable via SIMMER_WEATHER_SIZING_PCT)
  • Capped at max position setting ($2.00 default)
  • Falls back to fixed size if portfolio unavailable

This prevents over-deployment and scales with your account size.

Safeguards

Before trading, the skill checks:

  • Flip-flop warning: Skips if you've been reversing too much
  • Slippage: Skips if estimated slippage > 15%
  • Time decay: Skips if market resolves in < 2 hours
  • Market status: Skips if market already resolved

Disable with --no-safeguards (not recommended).

Source Tagging

All trades are tagged with source: "sdk:weather". This means:

  • Portfolio shows breakdown by strategy
  • Copytrading skill won't sell your weather positions
  • You can track weather P&L separately

Example Output

🌤️ Simmer Weather Trading Skill
==================================================

⚙️ Configuration:
  Entry threshold: 15% (buy below this)
  Exit threshold:  45% (sell above this)
  Max position:    $2.00
  Locations:       NYC
  Smart sizing:    ✓ Enabled
  Safeguards:      ✓ Enabled
  Trend detection: ✓ Enabled

💰 Portfolio:
  Balance: $150.00
  Exposure: $45.00
  Positions: 8

📍 NYC 2026-01-28 (high temp)
  NOAA forecast: 34°F
  Matching bucket: 34-35°F @ $0.12
  💡 Smart sizing: $2.00 (capped at max position)
  ✅ Below threshold ($0.15) - BUY opportunity! 📉 (dropped 15% in 24h)
  Executing trade...
  ✅ Bought 62.5 shares @ $0.12

📊 Summary:
  Events scanned: 12
  Entry opportunities: 1
  Trades executed: 1

Troubleshooting

"Safeguard blocked: Severe flip-flop warning"

  • You've been changing direction too much on this market
  • Wait before trading again

"Slippage too high"

  • Market is illiquid, reduce position size or skip

"Resolves in Xh - too soon"

  • Market resolving soon, risk is elevated

"No weather markets found"

  • Weather markets may not be active (seasonal)

"API key invalid"

  • Get new key from simmer.markets/dashboard → SDK tab

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

polymarket预测市场量化交易天气数据noaa自动化交易加密货币usdcdefi

同类 Skill