Climate & Weather Trader
This is a template.
The default signal is keyword discovery + NOAA/weather API data alignment — remix it with ForecastEx climate oracle feeds, satellite NDVI data for agriculture, or ensemble weather model outputs.
The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Strategy Overview
Climate prediction markets are one of the fastest-growing underserved categories. Polymarket has 151+ active climate markets but most are basic. This skill captures alpha on:
- - Temperature extremes — record highs, heatwaves, frost events
- Natural catastrophes — hurricane counts, earthquake magnitudes, wildfire acreage
- Climate milestones — CO2 ppm thresholds, Arctic sea ice minimums
- Agricultural impacts — wheat yields, drought-driven crop failures, water allocations
Climate markets are uniquely suited for quantitative trading: the data sources are public, verifiable, and highly structured (NOAA, ECMWF, NASA).
Signal Logic
Default Signal: Conviction-Based Sizing with Seasonal Bias
- 1. Discover active climate/weather markets on Polymarket
- Compute base conviction from distance to threshold (0% at boundary → 100% at p=0/p=1)
- Apply
season_bias() multiplier based on current month and event type in the question - Size =
max(MIN_TRADE, conviction × bias × MAX_POSITION) — capped at MAXPOSITION - Skip markets with spread > MAXSPREAD or fewer than MIN_DAYS to resolution
Seasonal Bias (built-in, no API required)
Climate events follow documented seasonal cycles. season_bias() boosts conviction when the current month aligns with peak season, and dampens it off-season:
| Event type | Peak season | In-season multiplier | Off-season multiplier |
|---|
| Hurricane / cyclone | June–November | 1.4x | 0.6x |
| Sea ice / Arctic |
July–September |
1.4x | 0.7x |
| El Niño / La Niña / ENSO | December–February |
1.3x | 0.9x |
| Wildfire / fire season | July–October |
1.3x | 0.8x |
| Heatwave / drought | June–September |
1.3x | 0.8x |
| Snowfall / blizzard | November–March |
1.3x | 0.7x |
Example: a hurricane market at 25% in October → conviction 34% × 1.4x bias = 48% → $12 position. Same market in January → 34% × 0.6x = 20% → $5 (floor).
Remix Ideas
- - ECMWF ensemble: Replace
market.current_probability with model consensus probability — trade the divergence between forecast and market - NOAA ENSO index: Feed ONI values directly to boost/reduce
season_bias() for El Niño markets - Insurance cat bond pricing: Use ILS spreads as implied probability benchmarks for hurricane markets
- Copernicus climate data: Real-time European climate services for local/regional temperature markets
Market Categories Tracked
CODEBLOCK0
Risk Parameters
| Parameter | Default | Notes |
|---|
| Max position size | $20 USDC | Per market |
| Min market volume |
$3,000 | Climate markets are less liquid |
| Max bid-ask spread | 12% | Wider allowed for niche markets |
| Min days to resolution | 14 | Weather requires sufficient lead time |
| Max open positions | 8 | Diversify across events |
Key Data Sources
- - NOAA Climate Data Online: https://www.ncdc.noaa.gov/cdo-web/
- Open-Meteo API: https://open-meteo.com/ (free, no key required)
- Copernicus C3S: https://cds.climate.copernicus.eu/
- ForecastEx: https://forecastex.com/
Installation & Setup
CODEBLOCK1
Requires: SIMMER_API_KEY environment variable. Optional: OPENMETEO_API_KEY.
Cron Schedule
Runs every 30 minutes (*/30 * * * *). Weather data updates every 1–6 hours; no need to poll faster.
Safety & Execution Mode
The skill defaults to paper trading (venue="sim"). Real trades only execute when --live is passed explicitly.
| Scenario | Mode | Financial risk |
|---|
| INLINECODE10 | Paper (sim) | None |
| Cron / automaton |
Paper (sim) | None |
|
python trader.py --live | Live (polymarket) | Real USDC |
The automaton cron is set to null — it does not run on a schedule until you configure it in the Simmer UI. autostart: false means it won't start automatically on install.
Required Credentials
| Variable | Required | Notes |
|---|
| INLINECODE14 | Yes | Trading authority — keep this credential private. Do not place a live-capable key in any environment where automated code could call --live. |
Tunables (Risk Parameters)
All risk parameters are declared in clawhub.json as tunables and adjustable from the Simmer UI without code changes. They use SIMMER_-prefixed env vars so apply_skill_config() can load them securely.
| Variable | Default | Purpose |
|---|
| INLINECODE20 | INLINECODE21 | Max USDC per trade (reached at 100% conviction) |
| INLINECODE22 |
3000 | Min market volume filter (USD) |
|
SIMMER_MAX_SPREAD |
0.12 | Max bid-ask spread (0.12 = 12%) |
|
SIMMER_MIN_DAYS |
14 | Min days until market resolves |
|
SIMMER_MAX_POSITIONS |
8 | Max concurrent open positions |
|
SIMMER_YES_THRESHOLD |
0.38 | Buy YES if market price ≤ this value |
|
SIMMER_NO_THRESHOLD |
0.62 | Sell NO if market price ≥ this value |
|
SIMMER_MIN_TRADE |
5 | Floor for any trade (min USDC regardless of conviction) |
Dependency
INLINECODE36 is published on PyPI by Simmer Markets.
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk
- Publisher: hello@simmer.markets
Review the source before providing live credentials if you require full auditability.
气候与天气交易员
这是一个模板。
默认信号基于关键词发现与NOAA/天气API数据对齐——可将其与ForecastEx气候预言机数据源、农业卫星NDVI数据或集合天气预报模型输出进行混合使用。
该技能处理所有底层逻辑(市场发现、交易执行、安全防护)。您的智能体负责提供阿尔法收益。
策略概述
气候预测市场是增长最快但服务不足的类别之一。Polymarket上有151+个活跃气候市场,但大多数较为基础。本技能在以下领域捕捉阿尔法收益:
- - 极端温度——历史最高温、热浪、霜冻事件
- 自然灾害——飓风数量、地震震级、野火过火面积
- 气候里程碑——二氧化碳百万分比浓度阈值、北极海冰最小值
- 农业影响——小麦产量、干旱导致的作物歉收、水资源分配
气候市场特别适合量化交易:数据源公开、可验证且高度结构化(NOAA、ECMWF、NASA)。
信号逻辑
默认信号:基于置信度的仓位规模调整与季节性偏差
- 1. 发现Polymarket上活跃的气候/天气市场
- 根据与阈值的距离计算基础置信度(边界处为0% → p=0/p=1时为100%)
- 根据当前月份和问题中的事件类型应用season_bias()乘数
- 仓位规模 = max(最小交易量, 置信度 × 偏差 × 最大仓位)——上限为最大仓位
- 跳过价差大于最大价差或距离结算少于最小天数的市场
季节性偏差(内置,无需API)
气候事件遵循有据可查的季节周期。season_bias()在当前月份与旺季一致时提升置信度,在淡季时降低置信度:
| 事件类型 | 旺季 | 旺季乘数 | 淡季乘数 |
|---|
| 飓风/气旋 | 6月–11月 | 1.4倍 | 0.6倍 |
| 海冰/北极 |
7月–9月 |
1.4倍 | 0.7倍 |
| 厄尔尼诺/拉尼娜/ENSO | 12月–2月 |
1.3倍 | 0.9倍 |
| 野火/火灾季节 | 7月–10月 |
1.3倍 | 0.8倍 |
| 热浪/干旱 | 6月–9月 |
1.3倍 | 0.8倍 |
| 降雪/暴风雪 | 11月–3月 |
1.3倍 | 0.7倍 |
示例:10月份飓风市场概率25% → 置信度34% × 1.4倍偏差 = 48% → 12美元仓位。同一市场在1月份 → 34% × 0.6倍 = 20% → 5美元(下限)。
混合创意
- - ECMWF集合预报:用模型共识概率替换market.currentprobability——交易预测与市场之间的偏差
- NOAA ENSO指数:直接输入ONI值以增强/降低厄尔尼诺市场的seasonbias()
- 保险巨灾债券定价:使用ILS价差作为飓风市场的隐含概率基准
- 哥白尼气候数据:针对本地/区域温度市场的实时欧洲气候服务
跟踪的市场类别
python
关键词 = [
飓风, 热带风暴, 气旋, 龙卷风, 洪水,
干旱, 野火, 地震, 二氧化碳, 海冰, 北极,
厄尔尼诺, 拉尼娜, ENSO, 降雪, 热浪, 热浪,
温度记录, 作物产量, 小麦, 收获, 冰川,
降雨量, 水资源短缺, 气候, 排放, 碳,
]
风险参数
| 参数 | 默认值 | 说明 |
|---|
| 最大仓位规模 | 20 USDC | 每个市场 |
| 最小市场交易量 |
3,000美元 | 气候市场流动性较低 |
| 最大买卖价差 | 12% | 小众市场允许更宽 |
| 最小结算天数 | 14天 | 天气需要足够的提前时间 |
| 最大持仓数量 | 8个 | 跨事件分散投资 |
关键数据源
- - NOAA气候数据在线:https://www.ncdc.noaa.gov/cdo-web/
- Open-Meteo API:https://open-meteo.com/(免费,无需密钥)
- 哥白尼C3S:https://cds.climate.copernicus.eu/
- ForecastEx:https://forecastex.com/
安装与设置
bash
clawhub install polymarket-climate-trader
需要:SIMMERAPIKEY环境变量。可选:OPENMETEOAPIKEY。
定时任务计划
每30分钟运行一次(/30 *)。天气数据每1–6小时更新一次;无需更频繁轮询。
安全与执行模式
该技能默认为模拟交易(venue=sim)。仅当显式传递--live时才执行真实交易。
| 场景 | 模式 | 财务风险 |
|---|
| python trader.py | 模拟(sim) | 无 |
| 定时任务/自动化 |
模拟(sim) | 无 |
| python trader.py --live | 实盘(polymarket) | 真实USDC |
自动化定时任务设置为null——在您在Simmer UI中配置之前,它不会按计划运行。autostart: false意味着安装后不会自动启动。
所需凭证
| 变量 | 是否必需 | 说明 |
|---|
| SIMMERAPIKEY | 是 | 交易授权——请保持此凭证私密。请勿将具备实盘能力的密钥放置在任何自动化代码可能调用--live的环境中。 |
可调参数(风险参数)
所有风险参数均在clawhub.json中声明为tunables,可在Simmer UI中无需修改代码即可调整。它们使用SIMMER前缀的环境变量,以便applyskill_config()能够安全加载。
| 变量 | 默认值 | 用途 |
|---|
| SIMMERMAXPOSITION | 25 | 每笔交易最大USDC(100%置信度时达到) |
| SIMMERMINVOLUME |
3000 | 最小市场交易量过滤(美元) |
| SIMMER
MAXSPREAD | 0.12 | 最大买卖价差(0.12 = 12%) |
| SIMMER
MINDAYS | 14 | 市场结算前最少天数 |
| SIMMER
MAXPOSITIONS | 8 | 最大并发持仓数量 |
| SIMMER
YESTHRESHOLD | 0.38 | 市场价格≤此值时买入YES |
| SIMMER
NOTHRESHOLD | 0.62 | 市场价格≥此值时卖出NO |
| SIMMER
MINTRADE | 5 | 任何交易的下限(无论置信度如何的最小USDC) |
依赖项
simmer-sdk由Simmer Markets在PyPI上发布。
- - PyPI:https://pypi.org/project/simmer-sdk/
- GitHub:https://github.com/SpartanLabsXyz/simmer-sdk
- 发布者:hello@simmer.markets
如果您需要完全可审计性,请在提供实盘凭证前审查源代码。